diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json index aca02dc2..d1c2b2e2 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json @@ -5,10 +5,13 @@ "ConnectionStrings": { "Default": "Server=dev.ccwin-in.com,13326;Database=BJABP;User ID=sa;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True", //"SettleAccountService": "Server=dev.ccwin-in.com,13326;Database=BQ_SA;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True;", - "SettleAccountService": "Server=dev.ccwin-in.com,13326;Database=BQ_SA;User ID=sa;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True;Connection Timeout=120", + "SettleAccountService": "Server=dev.ccwin-in.com,13326;Database=BQ_SA_TEMP;User ID=sa;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True;Connection Timeout=120", "ExChangeCenterService": "Server=dev.ccwin-in.com,13326;Database=ExChangeCenter;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True;", "WMSBJBMPT": "Server=dev.ccwin-in.com,6208;Database=WMS_BJBMPT_2;User ID=sa;Password=ChangkeTec@2021;Trusted_Connection=False;TrustServerCertificate=True;", "questdb": "host=dev.ccwin-in.com;port=10580;username=admin;password=quest;database=vmi;ServerCompatibilityMode=NoTypeLoading;" + + + }, "MinIO": { "EndPoint": "dev.ccwin-in.com:16084", diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs index 84ab6f08..16344228 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs @@ -309,15 +309,19 @@ namespace Win.Sfs.SettleAccount.Entities.BQ //result.ShouldNotBeNull(); //await _excelImportService.SaveBlobAsync(new SaveExcelImportInputDto { Name = fileName, Content = result }).ConfigureAwait(false); - ExtendExcel.BucketName = _cfg.GetValue("MinIO:BucketName", "default"); + ExtendExcel extend = new ExtendExcel(); - ExtendExcel.AccessKey = _cfg.GetValue("MinIO:AccessKey", "g0GKnhRGEQHI0uiGBYre"); - ExtendExcel.SecretKey = _cfg.GetValue("MinIO:SecretKey", "iKGlLz6UBzci3xrERw5Zz1gI77enT5u9agFemHPv"); - ExtendExcel.EndPoint = _cfg.GetValue("MinIO:EndPoint", "localhost:10684/host"); + extend.BucketName = _cfg.GetValue("MinIO:BucketName", "default"); - return await ExtendExcel.WriteDataToExcelInParallel("库存余额", dtos, 500000).ConfigureAwait(false); + extend.AccessKey = _cfg.GetValue("MinIO:AccessKey", "g0GKnhRGEQHI0uiGBYre"); + + extend.SecretKey = _cfg.GetValue("MinIO:SecretKey", "iKGlLz6UBzci3xrERw5Zz1gI77enT5u9agFemHPv"); + + extend.EndPoint = _cfg.GetValue("MinIO:EndPoint", "localhost:10684/host"); + + return await extend.WriteDataToExcelInParallel("库存余额", dtos, 500000).ConfigureAwait(false); //return fileName; } @@ -1495,11 +1499,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ - - private async Task> GetBusinessSum(IServiceProvider serviceProvider,EnumBusinessType p_businessType, string sebegin, string seend, string sabegin, string saend) + + private async Task> GetBusinessSum(IServiceProvider serviceProvider, EnumBusinessType p_businessType, string sebegin, string seend, string sabegin, string saend) { - List ls = new List(); + List ls = new List(); var connectionString = serviceProvider.GetRequiredService().GetConnectionString("SettleAccountService"); using var connection = new Microsoft.Data.SqlClient.SqlConnection(connectionString); @@ -1511,12 +1515,13 @@ namespace Win.Sfs.SettleAccount.Entities.BQ string sanottablename = string.Empty; string businesstype = string.Empty; + switch (p_businessType) { case EnumBusinessType.JisBBAC: satablename = "Set_BBAC_CAN_SA_DETAIL"; setablename = "Set_BBAC_SE_DETAIL"; - sanottablename= "Set_BBAC_NOT_SA_DETAIL"; + sanottablename = "Set_BBAC_NOT_SA_DETAIL"; break; case EnumBusinessType.JisHBPO: satablename = "Set_HBPO_CAN_SA_DETAIL"; @@ -1540,7 +1545,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ break; } string sql = - "select lu,\n" + + "select lu,PartCode,\n" + "SUM(BSEQty) BSEQty\n" + ",SUM(BRETQty) BRETQty\n" + ",SUM(SEQTY) SEQTY\n" + @@ -1553,7 +1558,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ ",SUM(ONLY_SA_QTY) ONLY_SA_QTY\n" + ",SUM(INVQty) INVQty\n" + "FROM (\n" + - "select temp1.*,case WHEN ISNULL(TEMP2.InvbillNum,'')<>'' THEN isnull(temp2.Qty,0) ELSE 0 END invQty from (\n" + + "select temp1.*,temp3.PartCode,case WHEN ISNULL(TEMP2.InvbillNum,'')<>'' THEN isnull(temp2.Qty,0) ELSE 0 END invQty from (\n" + "select LU,PN,\n" + "ISNULL([10],0) BSEQty,\n" + "ISNULL([20],0) BRETQty,\n" + @@ -1639,7 +1644,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ { sql += $" AND SettleDate <='{saend}'\n"; } - + sql += "UNION ALL\n" + @@ -1679,20 +1684,22 @@ namespace Win.Sfs.SettleAccount.Entities.BQ } - sql+=") temp2 on temp1.PN=temp2.PN and temp1.LU=temp2.LU\n" + - ") tempsum group by LU\n"; + sql += ") temp2 on temp1.PN=temp2.PN and temp1.LU=temp2.LU\n"; + sql += $" left join (SELECT MAX(BillTime) BillTime, Max(FactoryPartCode) PartCode, LU FROM {setablename} WHERE BusinessType = {(int)p_businessType} GROUP BY LU) temp3 on temp1.LU = temp3.LU"; + + sql += ") tempsum group by LU,PartCode\n"; command.CommandText = sql; command.CommandTimeout = 1200; var reader = command.ExecuteReader(); - + while (reader.Read()) { - ShipReceiveSum shipReceiveSum = new ShipReceiveSum(); + REC_SHIP_SUM shipReceiveSum = new REC_SHIP_SUM(); shipReceiveSum.LU = reader.GetString(0); shipReceiveSum.PartCode = ""; shipReceiveSum.BusinessType = p_businessType.ToString(); - shipReceiveSum.BSEQty = reader.GetDecimal(1).ToString(); + shipReceiveSum.BSEQty = reader.GetDecimal(1).ToString(); shipReceiveSum.BRETQty = reader.GetDecimal(2).ToString(); shipReceiveSum.SEQTY = reader.GetDecimal(3).ToString(); shipReceiveSum.RETQty = reader.GetDecimal(4).ToString(); @@ -1704,7 +1711,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ shipReceiveSum.ONLY_SA_QTY = reader.GetDecimal(10).ToString(); shipReceiveSum.INVQty = reader.GetDecimal(11).ToString(); ls.Add(shipReceiveSum); - // result += reader.GetString(0) + "," + reader.GetInt64(1) + "," + reader.GetInt64(2) + "," + reader.GetInt64(3) + "," + reader.GetInt64(4) + "," + reader.GetInt64(5) + "," + reader.GetInt64(6) + "," + reader.GetInt64(7) + "," + reader.GetInt64(8) + "," + reader.GetInt64(9) + "," + reader.GetInt64(10) + "," + reader.GetInt64(11) + "," + reader.GetInt64(12) + "," + reader.GetInt64(13) + "," + reader.GetInt64(14) + "\n"; + // result += reader.GetString(0) + "," + reader.GetInt64(1) + "," + reader.GetInt64(2) + "," + reader.GetInt64(3) + "," + reader.GetInt64(4) + "," + reader.GetInt64(5) + "," + reader.GetInt64(6) + "," + reader.GetInt64(7) + "," + reader.GetInt64(8) + "," + reader.GetInt64(9) + "," + reader.GetInt64(10) + "," + reader.GetInt64(11) + "," + reader.GetInt64(12) + "," + reader.GetInt64(13) + "," + reader.GetInt64(14) + "\n"; } reader.Close(); connection.Close(); @@ -1724,7 +1731,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ public async Task GetReceiveShipSum(string sebegin, string seend, string sabegin, string saend,string partcode) { - ConcurrentBag bagList = new ConcurrentBag(); + ConcurrentBag bagList = new ConcurrentBag(); List list = new List(); list.Add(EnumBusinessType.JisBBAC); @@ -1744,7 +1751,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ bagList.Add(itm); } }); - var entities=bagList.ToList(); + var entities=bagList.ToList(); IExporter _csv = new CsvExporter(); IExporter _excel = new ExcelExporter(); @@ -1762,11 +1769,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ ).ConfigureAwait(false); return _fileName; - - - - - } @@ -2224,12 +2226,12 @@ namespace Win.Sfs.SettleAccount.Entities.BQ public class ExtendExcel where T : class, new() { - static ConcurrentBag excelFiles = new ConcurrentBag(); - public static string EndPoint { get; set; } - public static string AccessKey { get; set; } - public static string SecretKey { get; set; } - public static string BucketName { get; set; } - public static bool WithSSL { get; set; } + ConcurrentBag excelFiles = new ConcurrentBag(); + public string EndPoint { get; set; } + public string AccessKey { get; set; } + public string SecretKey { get; set; } + public string BucketName { get; set; } + public bool WithSSL { get; set; } /// /// @@ -2237,7 +2239,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ /// 页签名称 /// 数据 /// 缓存文件行数 - public static async Task WriteDataToExcelInParallel(string sheetName, List data, int chunkSize) + public async Task WriteDataToExcelInParallel(string sheetName, List data, int chunkSize) { Stopwatch sw = Stopwatch.StartNew(); var count = data.Count / 1000000 + ((data.Count % 1000000) > 0 ? 1 : 0); @@ -2263,15 +2265,13 @@ namespace Win.Sfs.SettleAccount.Entities.BQ } } - //for (var i = 0; i < count; i++) - //{ - // var filelist = excelFiles.Where(p => p.Grpup == $"{sheetName}_{i}").Select(p => p.FileName).ToList(); - // //MergeExcelFiles(filelist.ToArray(), $"{sheetName}.xlsx",filelist.First()); - // //foreach (var file in filelist) - // //{ - // // File.Delete(file); - // //} - //} + + + + foreach (var file in filePaths) + { + File.Delete(file); + } sw.Stop(); @@ -2280,7 +2280,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ var minioClient = new MinioClient(EndPoint, AccessKey, SecretKey, ""); try { - await minioClient.PutObjectAsync(BucketName,zipPath, fileStream,fileStream.Length, "application/zip").ConfigureAwait(false); + await minioClient.PutObjectAsync(BucketName, "host/"+zipPath, fileStream,fileStream.Length, "application/zip").ConfigureAwait(false); } catch (Exception ex) { @@ -2301,7 +2301,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ - public static void WriteDataToExcel(List data, string fileName) + public void WriteDataToExcel(List data, string fileName) { IWorkbook workbook = new XSSFWorkbook(); ISheet sheet = workbook.CreateSheet("Sheet1"); diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/SHIP_REC_SUM.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/SHIP_REC_SUM.cs index 26fbcae3..3a66a26f 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/SHIP_REC_SUM.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/SHIP_REC_SUM.cs @@ -8,7 +8,7 @@ using Volo.Abp.Domain.Entities.Auditing; namespace Win.Sfs.SettleAccount.Entities.BQ { - public class SHIP_REC_SUM : AuditedAggregateRoot + public class REC_SHIP_SUM : AuditedAggregateRoot { [Display(Name = "客户零件号")] public string LU { set; get; } @@ -39,7 +39,12 @@ namespace Win.Sfs.SettleAccount.Entities.BQ [Display(Name = "已开票数量")] public string INVQty { set; get; } - public SHIP_REC_SUM(string lU, string partCode, string businessType, string bSEQty, string bRETQty, string sEQTY, string rETQty, string cANQty, string nOTQty, string sE_SA_CAN_QTY, string sE_SA_NOT_QTY, string oNLY_SE_QTY, string oNLY_SA_QTY, string iNVQty) + + public REC_SHIP_SUM() + { + + } + public REC_SHIP_SUM(string lU, string partCode, string businessType, string bSEQty, string bRETQty, string sEQTY, string rETQty, string cANQty, string nOTQty, string sE_SA_CAN_QTY, string sE_SA_NOT_QTY, string oNLY_SE_QTY, string oNLY_SA_QTY, string iNVQty) { LU = lU; PartCode = partCode; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs index 59e46f8d..f48f4e66 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs @@ -118,6 +118,7 @@ namespace Win.Sfs.SettleAccount builder.ConfigureVmiBalanceSum(options); builder.ConfigureVmiBalanceSumDetail(options); builder.ConfigureBalanceSum(options); + builder.ConfigureREC_SHIP_SUM(options); //builder.ConfigureTED_SA_INV(options); //大众发票导入 //builder.ConfigureInvoice(options); @@ -145,6 +146,20 @@ namespace Win.Sfs.SettleAccount #region 基础数据 + + + + private static void ConfigureREC_SHIP_SUM(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + builder.Entity(b => + { + b.ToTable($"{options.TablePrefix}_REC_SHIP_SUM", options.Schema); + + b.ConfigureByConvention(); + + }); + } + private static void ConfigurePriceListBJ(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) { builder.Entity(b => diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230710050546_init.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230710050546_init.Designer.cs deleted file mode 100644 index 82b59cdf..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230710050546_init.Designer.cs +++ /dev/null @@ -1,3735 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230710050546_init")] - partial class init - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - 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("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - 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("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230710050546_init.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230710050546_init.cs deleted file mode 100644 index ac1e6e08..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230710050546_init.cs +++ /dev/null @@ -1,1426 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class init : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_BBAC_CAN_SA", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "int", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - State = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_BBAC_CAN_SA", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_BBAC_CAN_SA_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - SettleBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Category = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - IsReturn = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Version = table.Column(type: "int", nullable: false), - Price = table.Column(type: "decimal(18,2)", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleDate = table.Column(type: "datetime2", nullable: false), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - GroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_BBAC_CAN_SA_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_BBAC_NOT_SA_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Category = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - IsReturn = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Price = table.Column(type: "decimal(18,2)", nullable: false), - Version = table.Column(type: "int", nullable: false), - SettleBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleDate = table.Column(type: "datetime2", nullable: false), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - GroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_BBAC_NOT_SA_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_BBAC_PD_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Version = table.Column(type: "int", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - Price = table.Column(type: "decimal(18,2)", nullable: false), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleDate = table.Column(type: "datetime2", nullable: false), - GroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - RELU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - REPN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_BBAC_PD_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_BBAC_SA", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "int", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - DNBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - State = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_BBAC_SA", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_BBAC_SA_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Category = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - IsReturn = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Version = table.Column(type: "int", nullable: false), - Price = table.Column(type: "decimal(18,2)", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleDate = table.Column(type: "datetime2", nullable: false), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - GroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_BBAC_SA_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_BBAC_SE_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - SeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - AssemblyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InjectionCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BeginDate = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Version = table.Column(type: "int", nullable: false), - ShippingDate = table.Column(type: "datetime2", nullable: false), - WmsBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_BBAC_SE_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_BBAC_SE_EDI", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "int", nullable: false), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - AssemblyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InjectionCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - BeginDate = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_BBAC_SE_EDI", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_BBAC_SE_REPORT", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "int", nullable: false), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - AssemblyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InjectionCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - EDIQty = table.Column(type: "decimal(18,2)", nullable: false), - BeginDate = table.Column(type: "datetime2", nullable: false), - ShippingDate = table.Column(type: "datetime2", nullable: false), - WmsBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_BBAC_SE_REPORT", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_BBAC_SE_SA_REPORT", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Category = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - WmsBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ShippingDate = table.Column(type: "datetime2", nullable: false), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PJISSeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDes = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerOfflineTime = table.Column(type: "datetime2", nullable: false), - AssemblyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InjectionCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SEQty = table.Column(type: "decimal(18,2)", nullable: false), - WMSQty = table.Column(type: "decimal(18,2)", nullable: false), - EDIQty = table.Column(type: "decimal(18,2)", nullable: false), - MateType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - FixPrice = table.Column(type: "decimal(18,2)", nullable: false), - Version = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_BBAC_SE_SA_REPORT", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_bom", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - ParentItemCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ParentItemDesc = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), - ChildItemCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ChildItemDesc = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), - ChildItemUom = table.Column(type: "nvarchar(max)", nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - OperateProcess = table.Column(type: "int", nullable: false), - ScrapPercent = table.Column(type: "decimal(18,2)", nullable: false), - BomType = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - EffectiveTime = table.Column(type: "datetime2", nullable: false), - ExpireTime = table.Column(type: "datetime2", nullable: false), - IssuePosition = table.Column(type: "nvarchar(max)", nullable: true), - BomLevel = table.Column(type: "int", nullable: false), - ParentId = 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), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_bom", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_bom_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, 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), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_bom_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_control", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Version = table.Column(type: "nvarchar(max)", nullable: true), - State = 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), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_control", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_HBPO_CAN_SA", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "int", nullable: false), - SettleBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - State = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_HBPO_CAN_SA", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_HBPO_CAN_SA_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - SettleBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Version = table.Column(type: "int", nullable: false), - Price = table.Column(type: "decimal(18,2)", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleDate = table.Column(type: "datetime2", nullable: false), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - GroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_HBPO_CAN_SA_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_HBPO_NOT_SA_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Price = table.Column(type: "decimal(18,2)", nullable: false), - Version = table.Column(type: "int", nullable: false), - SettleBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleDate = table.Column(type: "datetime2", nullable: false), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - GroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_HBPO_NOT_SA_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_HBPO_PD_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Version = table.Column(type: "int", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - Price = table.Column(type: "decimal(18,2)", nullable: false), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleDate = table.Column(type: "datetime2", nullable: false), - GroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - RELU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - REPN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_HBPO_PD_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_HBPO_SA", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "int", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - DNBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - State = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - RecordCount = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_HBPO_SA", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_HBPO_SA_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Version = table.Column(type: "int", nullable: false), - Price = table.Column(type: "decimal(18,2)", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleDate = table.Column(type: "datetime2", nullable: false), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - GroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_HBPO_SA_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_HBPO_SE_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - SeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - AssemblyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InjectionCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BeginDate = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Version = table.Column(type: "int", nullable: false), - ShippingDate = table.Column(type: "datetime2", nullable: false), - WmsBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_HBPO_SE_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_HBPO_SE_EDI", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "int", nullable: false), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - AssemblyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InjectionCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - BeginDate = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_HBPO_SE_EDI", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_HBPO_SE_REPORT", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "int", nullable: false), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - AssemblyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InjectionCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - EDIQty = table.Column(type: "decimal(18,2)", nullable: false), - BeginDate = table.Column(type: "datetime2", nullable: false), - ShippingDate = table.Column(type: "datetime2", nullable: false), - WmsBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_HBPO_SE_REPORT", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_HBPO_SE_SA_REPORT", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Category = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PJISSeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDes = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerOfflineTime = table.Column(type: "datetime2", nullable: false), - AssemblyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InjectionCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SEQty = table.Column(type: "decimal(18,2)", nullable: false), - WMSQty = table.Column(type: "decimal(18,2)", nullable: false), - EDIQty = table.Column(type: "decimal(18,2)", nullable: false), - MateType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - FixPrice = table.Column(type: "decimal(18,2)", nullable: false), - Version = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - ShippingDate = table.Column(type: "datetime2", nullable: false), - WmsBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_HBPO_SE_SA_REPORT", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_INVOICE_GRP", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - RealnvBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvbillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Amt = table.Column(type: "decimal(18,2)", nullable: false), - TaxAmt = table.Column(type: "decimal(18,2)", nullable: false), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - FileName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BusinessType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_INVOICE_GRP", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_INVOICE_MAP_GROUP", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "int", nullable: false), - InvbillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Amt = table.Column(type: "decimal(18,2)", nullable: false), - Extend1 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_INVOICE_MAP_GROUP", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_INVOICE_NOT_SETTLE", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "int", nullable: false), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU1 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend1 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_INVOICE_NOT_SETTLE", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_INVOICE_WAIT_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "int", nullable: false), - InvbillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PRICE = table.Column(type: "decimal(18,2)", nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - Amt = table.Column(type: "decimal(18,2)", nullable: false), - BussiessType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend1 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend3 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend4 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_INVOICE_WAIT_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_JIT_SE_SA_REPORT", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Category = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PJISSeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDes = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerOfflineTime = table.Column(type: "datetime2", nullable: false), - AssemblyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InjectionCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SEQty = table.Column(type: "decimal(18,2)", nullable: false), - WMSQty = table.Column(type: "decimal(18,2)", nullable: false), - EDIQty = table.Column(type: "decimal(18,2)", nullable: false), - MateType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - FixPrice = table.Column(type: "decimal(18,2)", nullable: false), - Version = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - ShippingDate = table.Column(type: "datetime2", nullable: false), - WmsBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_JIT_SE_SA_REPORT", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_material", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - Unit = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - EstimateType = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - EstimateTypeDesc = table.Column(type: "nvarchar(max)", nullable: true), - CustomerPartCode = 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), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_material", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PriceList", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - BeginDate = table.Column(type: "datetime2", nullable: false), - EndDate = table.Column(type: "datetime2", nullable: false), - Price = table.Column(type: "decimal(18,2)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Type = table.Column(type: "int", nullable: false), - ParentId = 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), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_PriceList", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PriceListBJ", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - BeginDate = table.Column(type: "datetime2", nullable: false), - EndDate = table.Column(type: "datetime2", nullable: false), - Price = table.Column(type: "decimal(18,2)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Type = table.Column(type: "int", nullable: false), - ParentId = 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), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_PriceListBJ", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PriceListVersion", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_PriceListVersion", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PriceListVersionBJ", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_PriceListVersionBJ", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PUB_CAN_SA", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "int", nullable: false), - SettleBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - State = table.Column(type: "int", nullable: false), - BusinessType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_PUB_CAN_SA", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PUB_CAN_SA_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - SettleBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BusinessType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Version = table.Column(type: "int", nullable: false), - Price = table.Column(type: "decimal(18,2)", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleDate = table.Column(type: "datetime2", nullable: false), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - GroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_PUB_CAN_SA_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PUB_NOT_SA_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend1 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend3 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BusinessType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Price = table.Column(type: "decimal(18,2)", nullable: false), - Version = table.Column(type: "int", nullable: false), - SettleBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleDate = table.Column(type: "datetime2", nullable: false), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - GroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_PUB_NOT_SA_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PUB_PD_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BusinessType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Version = table.Column(type: "int", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - Price = table.Column(type: "decimal(18,2)", nullable: false), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleDate = table.Column(type: "datetime2", nullable: false), - GroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - RELU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - REPN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_PUB_PD_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PUB_SA", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "int", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - State = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_PUB_SA", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PUB_SA_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend1 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend3 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Version = table.Column(type: "int", nullable: false), - Price = table.Column(type: "decimal(18,2)", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleDate = table.Column(type: "datetime2", nullable: false), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - GroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_PUB_SA_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PUB_SE_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Extend1 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend3 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BusinessType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BeginDate = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Version = table.Column(type: "int", nullable: false), - ShippingDate = table.Column(type: "datetime2", nullable: false), - WmsBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_PUB_SE_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_relationship", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ErpMaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - MaterialProperty = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - SettleMaterialCode = table.Column(type: "nvarchar(max)", nullable: true), - ShipMaterailCode = table.Column(type: "nvarchar(max)", nullable: true), - AppraisalCategory = 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), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_relationship", x => x.Id); - }); - - migrationBuilder.CreateIndex( - name: "IX_Set_bom_ParentItemCode_ChildItemCode_Version", - table: "Set_bom", - columns: new[] { "ParentItemCode", "ChildItemCode", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_control_Year_Period", - table: "Set_control", - columns: new[] { "Year", "Period" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_material_MaterialCode", - table: "Set_material", - column: "MaterialCode", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_relationship_ErpMaterialCode", - table: "Set_relationship", - column: "ErpMaterialCode", - unique: true, - filter: "IsDeleted=0"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_BBAC_CAN_SA"); - - migrationBuilder.DropTable( - name: "Set_BBAC_CAN_SA_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_BBAC_NOT_SA_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_BBAC_PD_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_BBAC_SA"); - - migrationBuilder.DropTable( - name: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_BBAC_SE_EDI"); - - migrationBuilder.DropTable( - name: "Set_BBAC_SE_REPORT"); - - migrationBuilder.DropTable( - name: "Set_BBAC_SE_SA_REPORT"); - - migrationBuilder.DropTable( - name: "Set_bom"); - - migrationBuilder.DropTable( - name: "Set_bom_version"); - - migrationBuilder.DropTable( - name: "Set_control"); - - migrationBuilder.DropTable( - name: "Set_HBPO_CAN_SA"); - - migrationBuilder.DropTable( - name: "Set_HBPO_CAN_SA_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_HBPO_NOT_SA_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_HBPO_PD_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_HBPO_SA"); - - migrationBuilder.DropTable( - name: "Set_HBPO_SA_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_HBPO_SE_EDI"); - - migrationBuilder.DropTable( - name: "Set_HBPO_SE_REPORT"); - - migrationBuilder.DropTable( - name: "Set_HBPO_SE_SA_REPORT"); - - migrationBuilder.DropTable( - name: "Set_INVOICE_GRP"); - - migrationBuilder.DropTable( - name: "Set_INVOICE_MAP_GROUP"); - - migrationBuilder.DropTable( - name: "Set_INVOICE_NOT_SETTLE"); - - migrationBuilder.DropTable( - name: "Set_INVOICE_WAIT_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_JIT_SE_SA_REPORT"); - - migrationBuilder.DropTable( - name: "Set_material"); - - migrationBuilder.DropTable( - name: "Set_PriceList"); - - migrationBuilder.DropTable( - name: "Set_PriceListBJ"); - - migrationBuilder.DropTable( - name: "Set_PriceListVersion"); - - migrationBuilder.DropTable( - name: "Set_PriceListVersionBJ"); - - migrationBuilder.DropTable( - name: "Set_PUB_CAN_SA"); - - migrationBuilder.DropTable( - name: "Set_PUB_CAN_SA_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_PUB_NOT_SA_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_PUB_PD_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_PUB_SA"); - - migrationBuilder.DropTable( - name: "Set_PUB_SA_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_relationship"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230710062137_20230710-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230710062137_20230710-1.Designer.cs deleted file mode 100644 index 3360ad1f..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230710062137_20230710-1.Designer.cs +++ /dev/null @@ -1,3744 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230710062137_20230710-1")] - partial class _202307101 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("nvarchar(max)"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - 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("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230710062137_20230710-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230710062137_20230710-1.cs deleted file mode 100644 index 9368ce7e..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230710062137_20230710-1.cs +++ /dev/null @@ -1,63 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307101 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn( - name: "EndDate", - table: "Set_PriceList", - newName: "EndTime"); - - migrationBuilder.RenameColumn( - name: "BeginDate", - table: "Set_PriceList", - newName: "BeginTime"); - - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_PriceList", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ClientCode", - table: "Set_PriceList", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "LU", - table: "Set_PriceList", - type: "nvarchar(max)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_PriceList"); - - migrationBuilder.DropColumn( - name: "ClientCode", - table: "Set_PriceList"); - - migrationBuilder.DropColumn( - name: "LU", - table: "Set_PriceList"); - - migrationBuilder.RenameColumn( - name: "EndTime", - table: "Set_PriceList", - newName: "EndDate"); - - migrationBuilder.RenameColumn( - name: "BeginTime", - table: "Set_PriceList", - newName: "BeginDate"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230711014038_20230711-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230711014038_20230711-1.Designer.cs deleted file mode 100644 index ce000eb1..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230711014038_20230711-1.Designer.cs +++ /dev/null @@ -1,3750 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230711014038_20230711-1")] - partial class _202307111 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("nvarchar(max)"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230711014038_20230711-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230711014038_20230711-1.cs deleted file mode 100644 index 161e7ef7..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230711014038_20230711-1.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307111 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "ClientCode", - table: "Set_PriceListBJ", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "LU", - table: "Set_PriceListBJ", - type: "nvarchar(max)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ClientCode", - table: "Set_PriceListBJ"); - - migrationBuilder.DropColumn( - name: "LU", - table: "Set_PriceListBJ"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230711073528_20230711-2.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230711073528_20230711-2.Designer.cs deleted file mode 100644 index 22b91f7b..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230711073528_20230711-2.Designer.cs +++ /dev/null @@ -1,3807 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230711073528_20230711-2")] - partial class _202307112 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("nvarchar(max)"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230711073528_20230711-2.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230711073528_20230711-2.cs deleted file mode 100644 index 8528ced3..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230711073528_20230711-2.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307112 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_PURCHASE_PRICE", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - LU = table.Column(type: "nvarchar(max)", nullable: true), - Price = table.Column(type: "decimal(18,2)", 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_Set_PURCHASE_PRICE", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_PURCHASE_PRICE"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230712032712_20230712-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230712032712_20230712-1.Designer.cs deleted file mode 100644 index 31dca313..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230712032712_20230712-1.Designer.cs +++ /dev/null @@ -1,3870 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230712032712_20230712-1")] - partial class _202307121 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("nvarchar(max)"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("nvarchar(max)"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230712032712_20230712-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230712032712_20230712-1.cs deleted file mode 100644 index 137857b5..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230712032712_20230712-1.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307121 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_TB_RePartsRelationship", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - LU = table.Column(type: "nvarchar(max)", nullable: true), - RepLU = table.Column(type: "nvarchar(max)", nullable: true), - ClientCode = table.Column(type: "nvarchar(max)", nullable: true), - BusinessType = 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_Set_TB_RePartsRelationship", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_TB_RePartsRelationship"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230713031306_20230713-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230713031306_20230713-1.Designer.cs deleted file mode 100644 index 8880b984..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230713031306_20230713-1.Designer.cs +++ /dev/null @@ -1,3980 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230713031306_20230713-1")] - partial class _202307131 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("nvarchar(max)"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("nvarchar(max)"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230713031306_20230713-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230713031306_20230713-1.cs deleted file mode 100644 index a1c0fc87..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230713031306_20230713-1.cs +++ /dev/null @@ -1,206 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307131 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "State", - table: "Set_INVOICE_GRP", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "Extend1", - table: "Set_HBPO_SE_EDI", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend2", - table: "Set_HBPO_SE_EDI", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend3", - table: "Set_HBPO_SE_EDI", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend4", - table: "Set_HBPO_SE_EDI", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "Site", - table: "Set_HBPO_SE_EDI", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "State", - table: "Set_HBPO_CAN_SA", - type: "int", - maxLength: 50, - nullable: false, - defaultValue: 0, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Extend1", - table: "Set_BBAC_SE_EDI", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend2", - table: "Set_BBAC_SE_EDI", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend3", - table: "Set_BBAC_SE_EDI", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend4", - table: "Set_BBAC_SE_EDI", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "Site", - table: "Set_BBAC_SE_EDI", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "State", - table: "Set_BBAC_CAN_SA", - type: "int", - maxLength: 50, - nullable: false, - defaultValue: 0, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.CreateTable( - name: "Set_CodeSetting", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Project = table.Column(type: "nvarchar(max)", nullable: true), - Value = table.Column(type: "nvarchar(max)", 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), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_CodeSetting", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_CodeSetting"); - - migrationBuilder.DropColumn( - name: "State", - table: "Set_INVOICE_GRP"); - - migrationBuilder.DropColumn( - name: "Extend1", - table: "Set_HBPO_SE_EDI"); - - migrationBuilder.DropColumn( - name: "Extend2", - table: "Set_HBPO_SE_EDI"); - - migrationBuilder.DropColumn( - name: "Extend3", - table: "Set_HBPO_SE_EDI"); - - migrationBuilder.DropColumn( - name: "Extend4", - table: "Set_HBPO_SE_EDI"); - - migrationBuilder.DropColumn( - name: "Site", - table: "Set_HBPO_SE_EDI"); - - migrationBuilder.DropColumn( - name: "Extend1", - table: "Set_BBAC_SE_EDI"); - - migrationBuilder.DropColumn( - name: "Extend2", - table: "Set_BBAC_SE_EDI"); - - migrationBuilder.DropColumn( - name: "Extend3", - table: "Set_BBAC_SE_EDI"); - - migrationBuilder.DropColumn( - name: "Extend4", - table: "Set_BBAC_SE_EDI"); - - migrationBuilder.DropColumn( - name: "Site", - table: "Set_BBAC_SE_EDI"); - - migrationBuilder.AlterColumn( - name: "State", - table: "Set_HBPO_CAN_SA", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(int), - oldType: "int", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "State", - table: "Set_BBAC_CAN_SA", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(int), - oldType: "int", - oldMaxLength: 50); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714030100_20230714-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714030100_20230714-1.Designer.cs deleted file mode 100644 index 7824314e..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714030100_20230714-1.Designer.cs +++ /dev/null @@ -1,3992 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230714030100_20230714-1")] - partial class _202307141 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("nvarchar(max)"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("nvarchar(max)"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714030100_20230714-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714030100_20230714-1.cs deleted file mode 100644 index 1ead0f5b..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714030100_20230714-1.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307141 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Site", - table: "Set_HBPO_SA", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Site", - table: "Set_HBPO_CAN_SA", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Site", - table: "Set_BBAC_SA", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Site", - table: "Set_BBAC_CAN_SA", - type: "nvarchar(max)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Site", - table: "Set_HBPO_SA"); - - migrationBuilder.DropColumn( - name: "Site", - table: "Set_HBPO_CAN_SA"); - - migrationBuilder.DropColumn( - name: "Site", - table: "Set_BBAC_SA"); - - migrationBuilder.DropColumn( - name: "Site", - table: "Set_BBAC_CAN_SA"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714033202_20230714-2.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714033202_20230714-2.Designer.cs deleted file mode 100644 index 2e40ab2c..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714033202_20230714-2.Designer.cs +++ /dev/null @@ -1,3992 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230714033202_20230714-2")] - partial class _202307142 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("nvarchar(max)"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("nvarchar(max)"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714033202_20230714-2.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714033202_20230714-2.cs deleted file mode 100644 index 55d71a1d..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714033202_20230714-2.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307142 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "State", - table: "Set_control", - type: "bit", - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "State", - table: "Set_control", - type: "int", - nullable: false, - oldClrType: typeof(bool), - oldType: "bit"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714063941_20230714-3.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714063941_20230714-3.Designer.cs deleted file mode 100644 index b30a414e..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714063941_20230714-3.Designer.cs +++ /dev/null @@ -1,3992 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230714063941_20230714-3")] - partial class _202307143 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714063941_20230714-3.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714063941_20230714-3.cs deleted file mode 100644 index fd34eafa..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230714063941_20230714-3.cs +++ /dev/null @@ -1,181 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307143 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "BusinessType", - table: "Set_TB_RePartsRelationship", - type: "int", - nullable: false, - defaultValue: 0, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BusinessType", - table: "Set_PUB_SE_DETAIL", - type: "int", - maxLength: 50, - nullable: false, - defaultValue: 0, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BusinessType", - table: "Set_PUB_PD_DETAIL", - type: "int", - maxLength: 50, - nullable: false, - defaultValue: 0, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BusinessType", - table: "Set_PUB_NOT_SA_DETAIL", - type: "int", - maxLength: 50, - nullable: false, - defaultValue: 0, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BusinessType", - table: "Set_PUB_CAN_SA_DETAIL", - type: "int", - maxLength: 50, - nullable: false, - defaultValue: 0, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BusinessType", - table: "Set_PUB_CAN_SA", - type: "int", - maxLength: 50, - nullable: false, - defaultValue: 0, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BusinessType", - table: "Set_PriceList", - type: "int", - nullable: false, - defaultValue: 0, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BusinessType", - table: "Set_INVOICE_GRP", - type: "int", - maxLength: 50, - nullable: false, - defaultValue: 0, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "BusinessType", - table: "Set_TB_RePartsRelationship", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "BusinessType", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(int), - oldType: "int", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "BusinessType", - table: "Set_PUB_PD_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(int), - oldType: "int", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "BusinessType", - table: "Set_PUB_NOT_SA_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(int), - oldType: "int", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "BusinessType", - table: "Set_PUB_CAN_SA_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(int), - oldType: "int", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "BusinessType", - table: "Set_PUB_CAN_SA", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(int), - oldType: "int", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "BusinessType", - table: "Set_PriceList", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "BusinessType", - table: "Set_INVOICE_GRP", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(int), - oldType: "int", - oldMaxLength: 50); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230718010724_20230718-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230718010724_20230718-1.Designer.cs deleted file mode 100644 index 46d5e992..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230718010724_20230718-1.Designer.cs +++ /dev/null @@ -1,4023 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230718010724_20230718-1")] - partial class _202307181 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230718010724_20230718-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230718010724_20230718-1.cs deleted file mode 100644 index 7b1c8f2b..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230718010724_20230718-1.cs +++ /dev/null @@ -1,163 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307181 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Site", - table: "Set_BBAC_CAN_SA"); - - migrationBuilder.AlterColumn( - name: "MaterialProperty", - table: "Set_relationship", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36); - - migrationBuilder.AddColumn( - name: "Extend1", - table: "Set_PUB_PD_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend2", - table: "Set_PUB_PD_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend3", - table: "Set_PUB_PD_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend4", - table: "Set_PUB_PD_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend1", - table: "Set_HBPO_PD_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend2", - table: "Set_HBPO_PD_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend3", - table: "Set_HBPO_PD_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend4", - table: "Set_HBPO_PD_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend1", - table: "Set_BBAC_PD_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend2", - table: "Set_BBAC_PD_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend3", - table: "Set_BBAC_PD_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend4", - table: "Set_BBAC_PD_DETAIL", - type: "nvarchar(max)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Extend1", - table: "Set_PUB_PD_DETAIL"); - - migrationBuilder.DropColumn( - name: "Extend2", - table: "Set_PUB_PD_DETAIL"); - - migrationBuilder.DropColumn( - name: "Extend3", - table: "Set_PUB_PD_DETAIL"); - - migrationBuilder.DropColumn( - name: "Extend4", - table: "Set_PUB_PD_DETAIL"); - - migrationBuilder.DropColumn( - name: "Extend1", - table: "Set_HBPO_PD_DETAIL"); - - migrationBuilder.DropColumn( - name: "Extend2", - table: "Set_HBPO_PD_DETAIL"); - - migrationBuilder.DropColumn( - name: "Extend3", - table: "Set_HBPO_PD_DETAIL"); - - migrationBuilder.DropColumn( - name: "Extend4", - table: "Set_HBPO_PD_DETAIL"); - - migrationBuilder.DropColumn( - name: "Extend1", - table: "Set_BBAC_PD_DETAIL"); - - migrationBuilder.DropColumn( - name: "Extend2", - table: "Set_BBAC_PD_DETAIL"); - - migrationBuilder.DropColumn( - name: "Extend3", - table: "Set_BBAC_PD_DETAIL"); - - migrationBuilder.DropColumn( - name: "Extend4", - table: "Set_BBAC_PD_DETAIL"); - - migrationBuilder.AlterColumn( - name: "MaterialProperty", - table: "Set_relationship", - type: "nvarchar(36)", - maxLength: 36, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Site", - table: "Set_BBAC_CAN_SA", - type: "nvarchar(max)", - nullable: true); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230718011250_20230718-2.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230718011250_20230718-2.Designer.cs deleted file mode 100644 index 3aabace6..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230718011250_20230718-2.Designer.cs +++ /dev/null @@ -1,4023 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230718011250_20230718-2")] - partial class _202307182 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .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("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230718011250_20230718-2.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230718011250_20230718-2.cs deleted file mode 100644 index 31348d7d..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230718011250_20230718-2.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307182 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719004135_20230719-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719004135_20230719-1.Designer.cs deleted file mode 100644 index 3ad3f601..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719004135_20230719-1.Designer.cs +++ /dev/null @@ -1,4035 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230719004135_20230719-1")] - partial class _202307191 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719004135_20230719-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719004135_20230719-1.cs deleted file mode 100644 index b380926b..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719004135_20230719-1.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307191 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "ContractNo", - table: "Set_PriceListBJ", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Date", - table: "Set_PriceListBJ", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "ContractNo", - table: "Set_PriceList", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Date", - table: "Set_PriceList", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ContractNo", - table: "Set_PriceListBJ"); - - migrationBuilder.DropColumn( - name: "Date", - table: "Set_PriceListBJ"); - - migrationBuilder.DropColumn( - name: "ContractNo", - table: "Set_PriceList"); - - migrationBuilder.DropColumn( - name: "Date", - table: "Set_PriceList"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719022720_20230719-2.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719022720_20230719-2.Designer.cs deleted file mode 100644 index 015df829..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719022720_20230719-2.Designer.cs +++ /dev/null @@ -1,4038 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230719022720_20230719-2")] - partial class _202307192 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719022720_20230719-2.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719022720_20230719-2.cs deleted file mode 100644 index 27d23d6c..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719022720_20230719-2.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307192 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_PUB_SA", - type: "int", - nullable: false, - defaultValue: 0); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_PUB_SA"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719032116_vmi.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719032116_vmi.Designer.cs deleted file mode 100644 index 040c3b3b..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719032116_vmi.Designer.cs +++ /dev/null @@ -1,4259 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230719032116_vmi")] - partial class vmi - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("a6d57042-e087-421e-a086-dfb34c6bfe80"), - Cron = "0 0 8 26 *", - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PN") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PNType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("PN", "LU"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("SessionId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany("Logs") - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.SetNull); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", "Balance") - .WithMany("Logs") - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", "Category") - .WithMany("Logs") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - - b.Navigation("Category"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Navigation("Logs"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Navigation("Logs"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719032116_vmi.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719032116_vmi.cs deleted file mode 100644 index 3d9f1b77..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719032116_vmi.cs +++ /dev/null @@ -1,173 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_JobItem", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Cron = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Service = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - IsRunning = table.Column(type: "bit", nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_JobItem", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_VmiBalance", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - LU = table.Column(type: "nvarchar(450)", nullable: false), - PN = table.Column(type: "nvarchar(450)", nullable: false), - PNType = table.Column(type: "int", nullable: false), - Type = table.Column(type: "nvarchar(max)", nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_VmiBalance", x => x.Id); - table.UniqueConstraint("AK_Set_VmiBalance_PN_LU", x => new { x.PN, x.LU }); - }); - - migrationBuilder.CreateTable( - name: "Set_VmiCategory", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Type = table.Column(type: "int", nullable: false), - Number = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_VmiCategory", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_VmiSnapshot", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(max)", nullable: true), - Path = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_VmiSnapshot", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "JobLog", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - JobId = table.Column(type: "uniqueidentifier", nullable: true), - Start = table.Column(type: "datetime2", nullable: false), - End = table.Column(type: "datetime2", nullable: false), - Success = table.Column(type: "bit", nullable: false), - Exception = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_JobLog", x => x.Id); - table.ForeignKey( - name: "FK_JobLog_Set_JobItem_JobId", - column: x => x.JobId, - principalTable: "Set_JobItem", - principalColumn: "Id", - onDelete: ReferentialAction.SetNull); - }); - - migrationBuilder.CreateTable( - name: "Set_VmiLog", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CategoryId = table.Column(type: "uniqueidentifier", nullable: false), - BalanceId = table.Column(type: "uniqueidentifier", nullable: false), - SessionId = table.Column(type: "nvarchar(max)", nullable: true), - Type = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_VmiLog", x => x.Id); - table.ForeignKey( - name: "FK_Set_VmiLog_Set_VmiBalance_BalanceId", - column: x => x.BalanceId, - principalTable: "Set_VmiBalance", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_Set_VmiLog_Set_VmiCategory_CategoryId", - column: x => x.CategoryId, - principalTable: "Set_VmiCategory", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("a6d57042-e087-421e-a086-dfb34c6bfe80"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); - - migrationBuilder.CreateIndex( - name: "IX_JobLog_JobId", - table: "JobLog", - column: "JobId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_JobItem_Name", - table: "Set_JobItem", - column: "Name", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiCategory_Number", - table: "Set_VmiCategory", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiLog_BalanceId", - table: "Set_VmiLog", - column: "BalanceId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiLog_CategoryId", - table: "Set_VmiLog", - column: "CategoryId"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "JobLog"); - - migrationBuilder.DropTable( - name: "Set_VmiLog"); - - migrationBuilder.DropTable( - name: "Set_VmiSnapshot"); - - migrationBuilder.DropTable( - name: "Set_JobItem"); - - migrationBuilder.DropTable( - name: "Set_VmiBalance"); - - migrationBuilder.DropTable( - name: "Set_VmiCategory"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719053130_20230719-3.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719053130_20230719-3.Designer.cs deleted file mode 100644 index cebc2513..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719053130_20230719-3.Designer.cs +++ /dev/null @@ -1,4147 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230719053130_20230719-3")] - partial class _202307193 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719053130_20230719-3.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719053130_20230719-3.cs deleted file mode 100644 index 448ed110..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719053130_20230719-3.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307193 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_TaskJob", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Type = table.Column(type: "nvarchar(max)", nullable: true), - State = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ActionName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Error = table.Column(type: "nvarchar(max)", nullable: true), - Creator = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Email = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - FileName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - RealFileName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - RealDownFileName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - DownFileName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ServiceName = table.Column(type: "nvarchar(300)", maxLength: 300, 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), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_TaskJob", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_TaskJob"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719090654_20230719-4.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719090654_20230719-4.Designer.cs deleted file mode 100644 index 92d44d61..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719090654_20230719-4.Designer.cs +++ /dev/null @@ -1,4371 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230719090654_20230719-4")] - partial class _202307194 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("6efe1947-a242-4d20-b633-20b0f716a782"), - Cron = "0 0 8 26 *", - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PN") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PNType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("PN", "LU"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("SessionId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany("Logs") - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.SetNull); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", "Balance") - .WithMany("Logs") - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", "Category") - .WithMany("Logs") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - - b.Navigation("Category"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Navigation("Logs"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Navigation("Logs"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719090654_20230719-4.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719090654_20230719-4.cs deleted file mode 100644 index a28269b2..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230719090654_20230719-4.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307194 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("a6d57042-e087-421e-a086-dfb34c6bfe80")); - - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_PUB_SA_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("6efe1947-a242-4d20-b633-20b0f716a782"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6efe1947-a242-4d20-b633-20b0f716a782")); - - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_PUB_SA_DETAIL"); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("a6d57042-e087-421e-a086-dfb34c6bfe80"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230720012742_vmi2.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230720012742_vmi2.Designer.cs deleted file mode 100644 index 1b40a82c..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230720012742_vmi2.Designer.cs +++ /dev/null @@ -1,4411 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230720012742_vmi2")] - partial class vmi2 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("579e2b8d-c9ec-4754-9520-e4475aea2a73"), - Cron = "0 0 8 26 *", - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SessionId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany("Logs") - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.SetNull); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", "Balance") - .WithMany("Logs") - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", "Category") - .WithMany("Logs") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - - b.Navigation("Category"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Navigation("Logs"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Navigation("Logs"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230720012742_vmi2.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230720012742_vmi2.cs deleted file mode 100644 index 099f0ee0..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230720012742_vmi2.cs +++ /dev/null @@ -1,227 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi2 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropUniqueConstraint( - name: "AK_Set_VmiBalance_PN_LU", - table: "Set_VmiBalance"); - - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6efe1947-a242-4d20-b633-20b0f716a782")); - - migrationBuilder.DropColumn( - name: "PNType", - table: "Set_VmiBalance"); - - migrationBuilder.RenameColumn( - name: "Type", - table: "Set_VmiBalance", - newName: "VinCode"); - - migrationBuilder.RenameColumn( - name: "PN", - table: "Set_VmiBalance", - newName: "PartCode"); - - migrationBuilder.AddColumn( - name: "CreatedBy", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "CreatedDate", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "OrderNumber", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "CodeType", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "CreationTime", - table: "Set_VmiBalance", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "Desc", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpToLoc", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "MatchNumber", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PjsNum", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ProType", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SeqNumber", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ShippingDate", - table: "Set_VmiBalance", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "Tmpe4", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "UniqueCode", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddUniqueConstraint( - name: "AK_Set_VmiBalance_ErpToLoc_PartCode_LU", - table: "Set_VmiBalance", - columns: new[] { "ErpToLoc", "PartCode", "LU" }); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("579e2b8d-c9ec-4754-9520-e4475aea2a73"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropUniqueConstraint( - name: "AK_Set_VmiBalance_ErpToLoc_PartCode_LU", - table: "Set_VmiBalance"); - - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("579e2b8d-c9ec-4754-9520-e4475aea2a73")); - - migrationBuilder.DropColumn( - name: "CreatedBy", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "CreatedDate", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "OrderNumber", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "CodeType", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "CreationTime", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "Desc", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "ErpToLoc", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "MatchNumber", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "PjsNum", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "ProType", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "SeqNumber", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "ShippingDate", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "Tmpe4", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "UniqueCode", - table: "Set_VmiBalance"); - - migrationBuilder.RenameColumn( - name: "VinCode", - table: "Set_VmiBalance", - newName: "Type"); - - migrationBuilder.RenameColumn( - name: "PartCode", - table: "Set_VmiBalance", - newName: "PN"); - - migrationBuilder.AddColumn( - name: "PNType", - table: "Set_VmiBalance", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddUniqueConstraint( - name: "AK_Set_VmiBalance_PN_LU", - table: "Set_VmiBalance", - columns: new[] { "PN", "LU" }); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("6efe1947-a242-4d20-b633-20b0f716a782"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230721063549_20230721.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230721063549_20230721.Designer.cs deleted file mode 100644 index 4d399e80..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230721063549_20230721.Designer.cs +++ /dev/null @@ -1,4442 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230721063549_20230721")] - partial class _20230721 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - 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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - 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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("7cb83f54-2a71-409e-aaf3-a2adc80616e4"), - Cron = "0 0 8 26 *", - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SessionId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany("Logs") - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.SetNull); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", "Balance") - .WithMany("Logs") - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", "Category") - .WithMany("Logs") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - - b.Navigation("Category"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Navigation("Logs"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Navigation("Logs"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230721063549_20230721.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230721063549_20230721.cs deleted file mode 100644 index 0866771f..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230721063549_20230721.cs +++ /dev/null @@ -1,217 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _20230721 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("579e2b8d-c9ec-4754-9520-e4475aea2a73")); - - migrationBuilder.DropColumn( - name: "Category", - table: "Set_BBAC_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "Category", - table: "Set_BBAC_CAN_SA_DETAIL"); - - migrationBuilder.AddColumn( - name: "Site", - table: "Set_PUB_CAN_SA", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "BussiessType", - table: "Set_INVOICE_WAIT_DETAIL", - type: "int", - maxLength: 50, - nullable: false, - defaultValue: 0, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Qty", - table: "Set_INVOICE_NOT_SETTLE", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "InvoiceState", - table: "Set_INVOICE_GRP", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_HBPO_SA_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_HBPO_SA", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_HBPO_NOT_SA_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_HBPO_CAN_SA_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_HBPO_CAN_SA", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_BBAC_NOT_SA_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "ContractDocID", - table: "Set_BBAC_NOT_SA_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_BBAC_CAN_SA_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "ContractDocID", - table: "Set_BBAC_CAN_SA_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Site", - table: "Set_BBAC_CAN_SA", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("7cb83f54-2a71-409e-aaf3-a2adc80616e4"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7cb83f54-2a71-409e-aaf3-a2adc80616e4")); - - migrationBuilder.DropColumn( - name: "Site", - table: "Set_PUB_CAN_SA"); - - migrationBuilder.DropColumn( - name: "Qty", - table: "Set_INVOICE_NOT_SETTLE"); - - migrationBuilder.DropColumn( - name: "InvoiceState", - table: "Set_INVOICE_GRP"); - - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_HBPO_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_HBPO_SA"); - - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_HBPO_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_HBPO_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_HBPO_CAN_SA"); - - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_BBAC_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "ContractDocID", - table: "Set_BBAC_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_BBAC_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "ContractDocID", - table: "Set_BBAC_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "Site", - table: "Set_BBAC_CAN_SA"); - - migrationBuilder.AlterColumn( - name: "BussiessType", - table: "Set_INVOICE_WAIT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(int), - oldType: "int", - oldMaxLength: 50); - - migrationBuilder.AddColumn( - name: "Category", - table: "Set_BBAC_NOT_SA_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "Category", - table: "Set_BBAC_CAN_SA_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("579e2b8d-c9ec-4754-9520-e4475aea2a73"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230722013448_20230722.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230722013448_20230722.Designer.cs deleted file mode 100644 index cda2ae73..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230722013448_20230722.Designer.cs +++ /dev/null @@ -1,4442 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230722013448_20230722")] - partial class _20230722 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - 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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - 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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("77c86249-e0ed-437e-9554-66043202e7a9"), - Cron = "0 0 8 26 *", - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SessionId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany("Logs") - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.SetNull); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", "Balance") - .WithMany("Logs") - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", "Category") - .WithMany("Logs") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - - b.Navigation("Category"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Navigation("Logs"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Navigation("Logs"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230722013448_20230722.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230722013448_20230722.cs deleted file mode 100644 index 94007930..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230722013448_20230722.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _20230722 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7cb83f54-2a71-409e-aaf3-a2adc80616e4")); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("77c86249-e0ed-437e-9554-66043202e7a9"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("77c86249-e0ed-437e-9554-66043202e7a9")); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("7cb83f54-2a71-409e-aaf3-a2adc80616e4"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230722015432_202307220002.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230722015432_202307220002.Designer.cs deleted file mode 100644 index 8dbcf755..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230722015432_202307220002.Designer.cs +++ /dev/null @@ -1,4550 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230722015432_202307220002")] - partial class _202307220002 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - 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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - 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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("a18cc96a-c18c-4a88-98ff-6136f2917298"), - Cron = "0 0 8 26 *", - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SessionId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany("Logs") - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.SetNull); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", "Balance") - .WithMany("Logs") - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", "Category") - .WithMany("Logs") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - - b.Navigation("Category"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Navigation("Logs"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Navigation("Logs"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230722015432_202307220002.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230722015432_202307220002.cs deleted file mode 100644 index 37364759..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230722015432_202307220002.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307220002 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("77c86249-e0ed-437e-9554-66043202e7a9")); - - migrationBuilder.CreateTable( - name: "Set_BBAC_SEC_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Category = table.Column(type: "int", nullable: false), - WmsBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ShippingDate = table.Column(type: "datetime2", nullable: false), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDes = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PrimitiveLU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ReplaceLU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerOfflineTime = table.Column(type: "datetime2", nullable: false), - SAQty = table.Column(type: "decimal(18,2)", nullable: false), - SEQty = table.Column(type: "decimal(18,2)", nullable: false), - DiffQty = table.Column(type: "decimal(18,2)", nullable: false), - MateType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - FixPrice = table.Column(type: "decimal(18,2)", nullable: false), - SeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PJISSeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_BBAC_SEC_DETAIL", x => x.Id); - }); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("a18cc96a-c18c-4a88-98ff-6136f2917298"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_BBAC_SEC_DETAIL"); - - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("a18cc96a-c18c-4a88-98ff-6136f2917298")); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("77c86249-e0ed-437e-9554-66043202e7a9"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230724052214_20230724-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230724052214_20230724-1.Designer.cs deleted file mode 100644 index a1357b92..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230724052214_20230724-1.Designer.cs +++ /dev/null @@ -1,4766 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230724052214_20230724-1")] - partial class _202307241 - { - 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.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - 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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - 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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("c318a2b7-df89-4c68-aa3a-0e9c470d584f"), - Cron = "0 0 8 26 *", - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SessionId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany("Logs") - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.SetNull); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", "Balance") - .WithMany("Logs") - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", "Category") - .WithMany("Logs") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - - b.Navigation("Category"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Navigation("Logs"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Navigation("Logs"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230724052214_20230724-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230724052214_20230724-1.cs deleted file mode 100644 index 798a7ec8..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230724052214_20230724-1.cs +++ /dev/null @@ -1,112 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307241 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("a18cc96a-c18c-4a88-98ff-6136f2917298")); - - migrationBuilder.CreateTable( - name: "Set_HBPO_SEC_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Category = table.Column(type: "int", nullable: false), - WmsBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ShippingDate = table.Column(type: "datetime2", nullable: false), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDes = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PrimitiveLU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ReplaceLU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerOfflineTime = table.Column(type: "datetime2", nullable: false), - SAQty = table.Column(type: "decimal(18,2)", nullable: false), - SEQty = table.Column(type: "decimal(18,2)", nullable: false), - DiffQty = table.Column(type: "decimal(18,2)", nullable: false), - MateType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - FixPrice = table.Column(type: "decimal(18,2)", nullable: false), - SeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PJISSeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_HBPO_SEC_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PUB_SEC_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Category = table.Column(type: "int", nullable: false), - WmsBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ShippingDate = table.Column(type: "datetime2", nullable: false), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDes = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PrimitiveLU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ReplaceLU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerOfflineTime = table.Column(type: "datetime2", nullable: false), - SAQty = table.Column(type: "decimal(18,2)", nullable: false), - SEQty = table.Column(type: "decimal(18,2)", nullable: false), - DiffQty = table.Column(type: "decimal(18,2)", nullable: false), - MateType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - FixPrice = table.Column(type: "decimal(18,2)", nullable: false), - SeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PJISSeqNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_PUB_SEC_DETAIL", x => x.Id); - }); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("c318a2b7-df89-4c68-aa3a-0e9c470d584f"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_HBPO_SEC_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_PUB_SEC_DETAIL"); - - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c318a2b7-df89-4c68-aa3a-0e9c470d584f")); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("a18cc96a-c18c-4a88-98ff-6136f2917298"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230724063308_vmi3.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230724063308_vmi3.Designer.cs deleted file mode 100644 index 1b5929fa..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230724063308_vmi3.Designer.cs +++ /dev/null @@ -1,4896 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230724063308_vmi3")] - partial class vmi3 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - 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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - 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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - Desc = "test", - ErpToLoc = "key1", - LU = "key3", - PartCode = "key2", - Qty = 0m, - ShippingDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - - b.HasData( - new - { - Id = new Guid("a6462ee4-6e2c-bc8b-b1cb-5203c8dcaea8"), - Name = "发运", - Number = "100", - Type = 0 - }, - new - { - Id = new Guid("869f1589-9063-a545-719e-a83b6dca03c3"), - Name = "结算", - Number = "200", - Type = 1 - }, - new - { - Id = new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), - Name = "客户退货", - Number = "300", - Type = 1 - }, - new - { - Id = new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), - Name = "调整入库", - Number = "400", - Type = 0 - }, - new - { - Id = new Guid("42230472-9f26-7484-ff2a-451878e9955f"), - Name = "调整出库", - Number = "500", - Type = 1 - }, - new - { - Id = new Guid("3e0655a6-2532-a861-344f-b9c53c809c64"), - Name = "漏发补货", - Number = "600", - Type = 0 - }, - new - { - Id = new Guid("27b1609e-05af-cef7-f5f4-dd598c31b4de"), - Name = "负库存补货", - Number = "700", - Type = 0 - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BalanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("D2") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("F2") - .HasColumnType("nvarchar(max)"); - - b.Property("G2") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("H2") - .HasColumnType("nvarchar(max)"); - - b.Property("I2") - .HasColumnType("nvarchar(max)"); - - b.Property("J2") - .HasColumnType("nvarchar(max)"); - - b.Property("K2") - .HasColumnType("nvarchar(max)"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VmiType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", "Category") - .WithMany("Logs") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - - b.Navigation("Category"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230724063308_vmi3.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230724063308_vmi3.cs deleted file mode 100644 index 90b31b9b..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230724063308_vmi3.cs +++ /dev/null @@ -1,435 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi3 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_JobLog_Set_JobItem_JobId", - table: "JobLog"); - - migrationBuilder.DropPrimaryKey( - name: "PK_JobLog", - table: "JobLog"); - - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c318a2b7-df89-4c68-aa3a-0e9c470d584f")); - - migrationBuilder.RenameTable( - name: "JobLog", - newName: "Set_JobLog"); - - migrationBuilder.RenameColumn( - name: "SessionId", - table: "Set_VmiLog", - newName: "VinCode"); - - migrationBuilder.RenameIndex( - name: "IX_JobLog_JobId", - table: "Set_JobLog", - newName: "IX_Set_JobLog_JobId"); - - migrationBuilder.AddColumn( - name: "BalanceDesc", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "CodeType", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "CreationTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "D2", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Desc", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpToLoc", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "F2", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "G2", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "GroupId", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "H2", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "I2", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "J2", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "K2", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "LU", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "MatchNumber", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PartCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PjsNum", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ProType", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Qty", - table: "Set_VmiLog", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "SeqNumber", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ShippingDate", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "Tmpe4", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "UniqueCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "VmiType", - table: "Set_VmiLog", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AlterColumn( - name: "JobId", - table: "Set_JobLog", - type: "uniqueidentifier", - nullable: false, - defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), - oldClrType: typeof(Guid), - oldType: "uniqueidentifier", - oldNullable: true); - - migrationBuilder.AddPrimaryKey( - name: "PK_Set_JobLog", - table: "Set_JobLog", - column: "Id"); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "CodeType", "CreationTime", "Desc", "ErpToLoc", "LU", "MatchNumber", "PartCode", "PjsNum", "ProType", "Qty", "SeqNumber", "ShippingDate", "Tmpe4", "UniqueCode", "VinCode" }, - values: new object[] { new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "test", "key1", "key3", null, "key2", null, null, 0m, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, null, null }); - - migrationBuilder.InsertData( - table: "Set_VmiCategory", - columns: new[] { "Id", "Name", "Number", "Type" }, - values: new object[,] - { - { new Guid("a6462ee4-6e2c-bc8b-b1cb-5203c8dcaea8"), "发运", "100", 0 }, - { new Guid("869f1589-9063-a545-719e-a83b6dca03c3"), "结算", "200", 1 }, - { new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), "客户退货", "300", 1 }, - { new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), "调整入库", "400", 0 }, - { new Guid("42230472-9f26-7484-ff2a-451878e9955f"), "调整出库", "500", 1 }, - { new Guid("3e0655a6-2532-a861-344f-b9c53c809c64"), "漏发补货", "600", 0 }, - { new Guid("27b1609e-05af-cef7-f5f4-dd598c31b4de"), "负库存补货", "700", 0 } - }); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiCategory_Name", - table: "Set_VmiCategory", - column: "Name", - unique: true); - - migrationBuilder.AddForeignKey( - name: "FK_Set_JobLog_Set_JobItem_JobId", - table: "Set_JobLog", - column: "JobId", - principalTable: "Set_JobItem", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Set_JobLog_Set_JobItem_JobId", - table: "Set_JobLog"); - - migrationBuilder.DropIndex( - name: "IX_Set_VmiCategory_Name", - table: "Set_VmiCategory"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Set_JobLog", - table: "Set_JobLog"); - - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824")); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6")); - - migrationBuilder.DeleteData( - table: "Set_VmiCategory", - keyColumn: "Id", - keyValue: new Guid("27b1609e-05af-cef7-f5f4-dd598c31b4de")); - - migrationBuilder.DeleteData( - table: "Set_VmiCategory", - keyColumn: "Id", - keyValue: new Guid("3e0655a6-2532-a861-344f-b9c53c809c64")); - - migrationBuilder.DeleteData( - table: "Set_VmiCategory", - keyColumn: "Id", - keyValue: new Guid("42230472-9f26-7484-ff2a-451878e9955f")); - - migrationBuilder.DeleteData( - table: "Set_VmiCategory", - keyColumn: "Id", - keyValue: new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225")); - - migrationBuilder.DeleteData( - table: "Set_VmiCategory", - keyColumn: "Id", - keyValue: new Guid("869f1589-9063-a545-719e-a83b6dca03c3")); - - migrationBuilder.DeleteData( - table: "Set_VmiCategory", - keyColumn: "Id", - keyValue: new Guid("a6462ee4-6e2c-bc8b-b1cb-5203c8dcaea8")); - - migrationBuilder.DeleteData( - table: "Set_VmiCategory", - keyColumn: "Id", - keyValue: new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6")); - - migrationBuilder.DropColumn( - name: "BalanceDesc", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "CodeType", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "CreationTime", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "D2", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "Desc", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "ErpToLoc", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "F2", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "G2", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "GroupId", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "H2", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "I2", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "J2", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "K2", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "LU", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "MatchNumber", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "PartCode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "PjsNum", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "ProType", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "Qty", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "SeqNumber", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "ShippingDate", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "Tmpe4", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "UniqueCode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "VmiType", - table: "Set_VmiLog"); - - migrationBuilder.RenameTable( - name: "Set_JobLog", - newName: "JobLog"); - - migrationBuilder.RenameColumn( - name: "VinCode", - table: "Set_VmiLog", - newName: "SessionId"); - - migrationBuilder.RenameIndex( - name: "IX_Set_JobLog_JobId", - table: "JobLog", - newName: "IX_JobLog_JobId"); - - migrationBuilder.AlterColumn( - name: "JobId", - table: "JobLog", - type: "uniqueidentifier", - nullable: true, - oldClrType: typeof(Guid), - oldType: "uniqueidentifier"); - - migrationBuilder.AddPrimaryKey( - name: "PK_JobLog", - table: "JobLog", - column: "Id"); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("c318a2b7-df89-4c68-aa3a-0e9c470d584f"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); - - migrationBuilder.AddForeignKey( - name: "FK_JobLog_Set_JobItem_JobId", - table: "JobLog", - column: "JobId", - principalTable: "Set_JobItem", - principalColumn: "Id", - onDelete: ReferentialAction.SetNull); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726013523_20230726-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726013523_20230726-1.Designer.cs deleted file mode 100644 index 8c278aef..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726013523_20230726-1.Designer.cs +++ /dev/null @@ -1,4714 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230726013523_20230726-1")] - partial class _202307261 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - Desc = "test", - ErpToLoc = "key1", - LU = "key3", - PartCode = "key2", - Qty = 0m, - ShippingDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - - b.HasData( - new - { - Id = new Guid("a6462ee4-6e2c-bc8b-b1cb-5203c8dcaea8"), - Name = "发运", - Number = "100", - Type = 0 - }, - new - { - Id = new Guid("869f1589-9063-a545-719e-a83b6dca03c3"), - Name = "结算", - Number = "200", - Type = 1 - }, - new - { - Id = new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), - Name = "客户退货", - Number = "300", - Type = 1 - }, - new - { - Id = new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), - Name = "调整入库", - Number = "400", - Type = 0 - }, - new - { - Id = new Guid("42230472-9f26-7484-ff2a-451878e9955f"), - Name = "调整出库", - Number = "500", - Type = 1 - }, - new - { - Id = new Guid("3e0655a6-2532-a861-344f-b9c53c809c64"), - Name = "漏发补货", - Number = "600", - Type = 0 - }, - new - { - Id = new Guid("27b1609e-05af-cef7-f5f4-dd598c31b4de"), - Name = "负库存补货", - Number = "700", - Type = 0 - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BalanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("D2") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("F2") - .HasColumnType("nvarchar(max)"); - - b.Property("G2") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("H2") - .HasColumnType("nvarchar(max)"); - - b.Property("I2") - .HasColumnType("nvarchar(max)"); - - b.Property("J2") - .HasColumnType("nvarchar(max)"); - - b.Property("K2") - .HasColumnType("nvarchar(max)"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VmiType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", "Category") - .WithMany("Logs") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - - b.Navigation("Category"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726013523_20230726-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726013523_20230726-1.cs deleted file mode 100644 index aa77dff6..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726013523_20230726-1.cs +++ /dev/null @@ -1,417 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307261 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_PUB_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_PUB_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_PUB_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_PUB_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_PUB_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_PUB_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_PUB_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_PUB_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_PUB_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_PUB_CAN_SA"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_PUB_CAN_SA"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_PUB_CAN_SA"); - - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_HBPO_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_HBPO_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_HBPO_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_HBPO_SA"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_HBPO_SA"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_HBPO_SA"); - - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_HBPO_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_HBPO_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_HBPO_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_HBPO_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_HBPO_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_HBPO_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_HBPO_CAN_SA"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_HBPO_CAN_SA"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_HBPO_CAN_SA"); - - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_BBAC_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_BBAC_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_BBAC_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_BBAC_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_BBAC_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_BBAC_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_BBAC_CAN_SA"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_BBAC_CAN_SA"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_BBAC_CAN_SA"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_PUB_SA_DETAIL", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_PUB_SA_DETAIL", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_PUB_SA_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_PUB_NOT_SA_DETAIL", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_PUB_NOT_SA_DETAIL", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_PUB_NOT_SA_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_PUB_CAN_SA_DETAIL", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_PUB_CAN_SA_DETAIL", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_PUB_CAN_SA_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_PUB_CAN_SA", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_PUB_CAN_SA", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_PUB_CAN_SA", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_HBPO_SA_DETAIL", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_HBPO_SA_DETAIL", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_HBPO_SA_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_HBPO_SA", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_HBPO_SA", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_HBPO_SA", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_HBPO_NOT_SA_DETAIL", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_HBPO_NOT_SA_DETAIL", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_HBPO_NOT_SA_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_HBPO_CAN_SA_DETAIL", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_HBPO_CAN_SA_DETAIL", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_HBPO_CAN_SA_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_HBPO_CAN_SA", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_HBPO_CAN_SA", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_HBPO_CAN_SA", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_BBAC_SA_DETAIL", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_BBAC_SA_DETAIL", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_BBAC_SA_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_BBAC_NOT_SA_DETAIL", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_BBAC_NOT_SA_DETAIL", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_BBAC_NOT_SA_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_BBAC_CAN_SA_DETAIL", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_BBAC_CAN_SA_DETAIL", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_BBAC_CAN_SA_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_BBAC_CAN_SA", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_BBAC_CAN_SA", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_BBAC_CAN_SA", - type: "bit", - nullable: false, - defaultValue: false); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726021913_202307260001.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726021913_202307260001.Designer.cs deleted file mode 100644 index cdae582c..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726021913_202307260001.Designer.cs +++ /dev/null @@ -1,4993 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230726021913_202307260001")] - partial class _202307260001 - { - 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("SettleAccount.Domain.BQ.BBAC_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - Desc = "test", - ErpToLoc = "key1", - LU = "key3", - PartCode = "key2", - Qty = 0m, - ShippingDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - - b.HasData( - new - { - Id = new Guid("a6462ee4-6e2c-bc8b-b1cb-5203c8dcaea8"), - Name = "发运", - Number = "100", - Type = 0 - }, - new - { - Id = new Guid("869f1589-9063-a545-719e-a83b6dca03c3"), - Name = "结算", - Number = "200", - Type = 1 - }, - new - { - Id = new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), - Name = "客户退货", - Number = "300", - Type = 1 - }, - new - { - Id = new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), - Name = "调整入库", - Number = "400", - Type = 0 - }, - new - { - Id = new Guid("42230472-9f26-7484-ff2a-451878e9955f"), - Name = "调整出库", - Number = "500", - Type = 1 - }, - new - { - Id = new Guid("3e0655a6-2532-a861-344f-b9c53c809c64"), - Name = "漏发补货", - Number = "600", - Type = 0 - }, - new - { - Id = new Guid("27b1609e-05af-cef7-f5f4-dd598c31b4de"), - Name = "负库存补货", - Number = "700", - Type = 0 - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BalanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("D2") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("F2") - .HasColumnType("nvarchar(max)"); - - b.Property("G2") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("H2") - .HasColumnType("nvarchar(max)"); - - b.Property("I2") - .HasColumnType("nvarchar(max)"); - - b.Property("J2") - .HasColumnType("nvarchar(max)"); - - b.Property("K2") - .HasColumnType("nvarchar(max)"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VmiType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", "Category") - .WithMany("Logs") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - - b.Navigation("Category"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726021913_202307260001.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726021913_202307260001.cs deleted file mode 100644 index 5abf7f77..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726021913_202307260001.cs +++ /dev/null @@ -1,130 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307260001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_BBAC_CAN_SA", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.CreateTable( - name: "Set_BBAC_ADJ_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BusinessType = table.Column(type: "int", nullable: false), - IsReturn = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ContractDocID = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - OldInvBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Price = table.Column(type: "decimal(18,2)", nullable: false), - Version = table.Column(type: "int", nullable: false), - SettleBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleDate = table.Column(type: "datetime2", nullable: false), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - GroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_BBAC_ADJ_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_HBPO_ADJ_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BusinessType = table.Column(type: "int", nullable: false), - OldInvBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Price = table.Column(type: "decimal(18,2)", nullable: false), - Version = table.Column(type: "int", nullable: false), - SettleBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleDate = table.Column(type: "datetime2", nullable: false), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - GroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_HBPO_ADJ_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PUB_ADJ_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend1 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BusinessType = table.Column(type: "int", nullable: false), - OldInvBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Price = table.Column(type: "decimal(18,2)", nullable: false), - Version = table.Column(type: "int", nullable: false), - SettleBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleDate = table.Column(type: "datetime2", nullable: false), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - GroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_PUB_ADJ_DETAIL", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_BBAC_ADJ_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_HBPO_ADJ_DETAIL"); - - migrationBuilder.DropTable( - name: "Set_PUB_ADJ_DETAIL"); - - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_BBAC_CAN_SA"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726064841_20230726-2.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726064841_20230726-2.Designer.cs deleted file mode 100644 index 6459275d..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726064841_20230726-2.Designer.cs +++ /dev/null @@ -1,5001 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230726064841_20230726-2")] - partial class _202307262 - { - 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("SettleAccount.Domain.BQ.BBAC_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" - }, - new - { - Id = new Guid("92cce083-20a8-5335-31ea-e390c57cac1f"), - Cron = "0 0/1 * * * ?", - IsRunning = false, - Name = "HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.HBPOSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - Desc = "test", - ErpToLoc = "key1", - LU = "key3", - PartCode = "key2", - Qty = 0m, - ShippingDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - - b.HasData( - new - { - Id = new Guid("a6462ee4-6e2c-bc8b-b1cb-5203c8dcaea8"), - Name = "发运", - Number = "100", - Type = 0 - }, - new - { - Id = new Guid("869f1589-9063-a545-719e-a83b6dca03c3"), - Name = "结算", - Number = "200", - Type = 1 - }, - new - { - Id = new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), - Name = "客户退货", - Number = "300", - Type = 1 - }, - new - { - Id = new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), - Name = "调整入库", - Number = "400", - Type = 0 - }, - new - { - Id = new Guid("42230472-9f26-7484-ff2a-451878e9955f"), - Name = "调整出库", - Number = "500", - Type = 1 - }, - new - { - Id = new Guid("3e0655a6-2532-a861-344f-b9c53c809c64"), - Name = "漏发补货", - Number = "600", - Type = 0 - }, - new - { - Id = new Guid("27b1609e-05af-cef7-f5f4-dd598c31b4de"), - Name = "负库存补货", - Number = "700", - Type = 0 - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BalanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("D2") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("F2") - .HasColumnType("nvarchar(max)"); - - b.Property("G2") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("H2") - .HasColumnType("nvarchar(max)"); - - b.Property("I2") - .HasColumnType("nvarchar(max)"); - - b.Property("J2") - .HasColumnType("nvarchar(max)"); - - b.Property("K2") - .HasColumnType("nvarchar(max)"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VmiType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", "Category") - .WithMany("Logs") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - - b.Navigation("Category"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726064841_20230726-2.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726064841_20230726-2.cs deleted file mode 100644 index 33cfa934..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726064841_20230726-2.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307262 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("92cce083-20a8-5335-31ea-e390c57cac1f"), null, "0 0/1 * * * ?", false, "HBPO发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.HBPOSeSyncAppService" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("92cce083-20a8-5335-31ea-e390c57cac1f")); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726064930_20230726-3.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726064930_20230726-3.Designer.cs deleted file mode 100644 index 1c9ed646..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726064930_20230726-3.Designer.cs +++ /dev/null @@ -1,5001 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230726064930_20230726-3")] - partial class _202307263 - { - 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("SettleAccount.Domain.BQ.BBAC_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" - }, - new - { - Id = new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), - Cron = "0 0/1 * * * ?", - IsRunning = false, - Name = "HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.HBPOSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - Desc = "test", - ErpToLoc = "key1", - LU = "key3", - PartCode = "key2", - Qty = 0m, - ShippingDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - - b.HasData( - new - { - Id = new Guid("a6462ee4-6e2c-bc8b-b1cb-5203c8dcaea8"), - Name = "发运", - Number = "100", - Type = 0 - }, - new - { - Id = new Guid("869f1589-9063-a545-719e-a83b6dca03c3"), - Name = "结算", - Number = "200", - Type = 1 - }, - new - { - Id = new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), - Name = "客户退货", - Number = "300", - Type = 1 - }, - new - { - Id = new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), - Name = "调整入库", - Number = "400", - Type = 0 - }, - new - { - Id = new Guid("42230472-9f26-7484-ff2a-451878e9955f"), - Name = "调整出库", - Number = "500", - Type = 1 - }, - new - { - Id = new Guid("3e0655a6-2532-a861-344f-b9c53c809c64"), - Name = "漏发补货", - Number = "600", - Type = 0 - }, - new - { - Id = new Guid("27b1609e-05af-cef7-f5f4-dd598c31b4de"), - Name = "负库存补货", - Number = "700", - Type = 0 - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BalanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("D2") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("F2") - .HasColumnType("nvarchar(max)"); - - b.Property("G2") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("H2") - .HasColumnType("nvarchar(max)"); - - b.Property("I2") - .HasColumnType("nvarchar(max)"); - - b.Property("J2") - .HasColumnType("nvarchar(max)"); - - b.Property("K2") - .HasColumnType("nvarchar(max)"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VmiType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", "Category") - .WithMany("Logs") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - - b.Navigation("Category"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726064930_20230726-3.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726064930_20230726-3.cs deleted file mode 100644 index 5f1f6a53..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726064930_20230726-3.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307263 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("92cce083-20a8-5335-31ea-e390c57cac1f")); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), null, "0 0/1 * * * ?", false, "HBPO发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.HBPOSeSyncAppService" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68")); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("92cce083-20a8-5335-31ea-e390c57cac1f"), null, "0 0/1 * * * ?", false, "HBPO发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.HBPOSeSyncAppService" }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726065932_vmi4.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726065932_vmi4.Designer.cs deleted file mode 100644 index b48e71bd..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726065932_vmi4.Designer.cs +++ /dev/null @@ -1,4683 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230726065932_vmi4")] - partial class vmi4 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CustomOrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - Desc = "test", - ErpToLoc = "key1", - LU = "key3", - PartCode = "key2", - Qty = 0m, - ShippingDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - - b.HasData( - new - { - Id = new Guid("b3b321dd-5e0e-55b0-5548-70a742e9a4db"), - Name = "发运入库", - Number = "100", - Type = 0 - }, - new - { - Id = new Guid("a04d00ac-0e9c-064d-b7ce-af0b4d7c8c6b"), - Name = "结算出库", - Number = "200", - Type = 1 - }, - new - { - Id = new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), - Name = "客户退货", - Number = "300", - Type = 1 - }, - new - { - Id = new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), - Name = "调整入库", - Number = "400", - Type = 0 - }, - new - { - Id = new Guid("42230472-9f26-7484-ff2a-451878e9955f"), - Name = "调整出库", - Number = "500", - Type = 1 - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Category") - .HasColumnType("nvarchar(max)"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Count") - .HasColumnType("decimal(18,2)"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("F2") - .HasColumnType("nvarchar(max)"); - - b.Property("G2") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("H2") - .HasColumnType("nvarchar(max)"); - - b.Property("I2") - .HasColumnType("nvarchar(max)"); - - b.Property("J2") - .HasColumnType("nvarchar(max)"); - - b.Property("K2") - .HasColumnType("nvarchar(max)"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VmiCategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("VmiType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("VmiCategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", null) - .WithMany("Logs") - .HasForeignKey("VmiCategoryId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726065932_vmi4.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726065932_vmi4.cs deleted file mode 100644 index 9dfd7a7e..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726065932_vmi4.cs +++ /dev/null @@ -1,202 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi4 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Set_VmiLog_Set_VmiBalance_BalanceId", - table: "Set_VmiLog"); - - migrationBuilder.DropForeignKey( - name: "FK_Set_VmiLog_Set_VmiCategory_CategoryId", - table: "Set_VmiLog"); - - migrationBuilder.DropIndex( - name: "IX_Set_VmiLog_BalanceId", - table: "Set_VmiLog"); - - migrationBuilder.DropIndex( - name: "IX_Set_VmiLog_CategoryId", - table: "Set_VmiLog"); - - migrationBuilder.DeleteData( - table: "Set_VmiCategory", - keyColumn: "Id", - keyValue: new Guid("27b1609e-05af-cef7-f5f4-dd598c31b4de")); - - migrationBuilder.DeleteData( - table: "Set_VmiCategory", - keyColumn: "Id", - keyValue: new Guid("3e0655a6-2532-a861-344f-b9c53c809c64")); - - migrationBuilder.DeleteData( - table: "Set_VmiCategory", - keyColumn: "Id", - keyValue: new Guid("869f1589-9063-a545-719e-a83b6dca03c3")); - - migrationBuilder.DeleteData( - table: "Set_VmiCategory", - keyColumn: "Id", - keyValue: new Guid("a6462ee4-6e2c-bc8b-b1cb-5203c8dcaea8")); - - migrationBuilder.DropColumn( - name: "BalanceId", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "CategoryId", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "Type", - table: "Set_VmiLog"); - - migrationBuilder.RenameColumn( - name: "D2", - table: "Set_VmiLog", - newName: "Category"); - - migrationBuilder.RenameColumn( - name: "Tmpe4", - table: "Set_VmiBalance", - newName: "CustomOrderNumber"); - - migrationBuilder.AddColumn( - name: "Count", - table: "Set_VmiLog", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "VmiCategoryId", - table: "Set_VmiLog", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.InsertData( - table: "Set_VmiCategory", - columns: new[] { "Id", "Name", "Number", "Type" }, - values: new object[] { new Guid("b3b321dd-5e0e-55b0-5548-70a742e9a4db"), "发运入库", "100", 0 }); - - migrationBuilder.InsertData( - table: "Set_VmiCategory", - columns: new[] { "Id", "Name", "Number", "Type" }, - values: new object[] { new Guid("a04d00ac-0e9c-064d-b7ce-af0b4d7c8c6b"), "结算出库", "200", 1 }); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiLog_VmiCategoryId", - table: "Set_VmiLog", - column: "VmiCategoryId"); - - migrationBuilder.AddForeignKey( - name: "FK_Set_VmiLog_Set_VmiCategory_VmiCategoryId", - table: "Set_VmiLog", - column: "VmiCategoryId", - principalTable: "Set_VmiCategory", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Set_VmiLog_Set_VmiCategory_VmiCategoryId", - table: "Set_VmiLog"); - - migrationBuilder.DropIndex( - name: "IX_Set_VmiLog_VmiCategoryId", - table: "Set_VmiLog"); - - migrationBuilder.DeleteData( - table: "Set_VmiCategory", - keyColumn: "Id", - keyValue: new Guid("a04d00ac-0e9c-064d-b7ce-af0b4d7c8c6b")); - - migrationBuilder.DeleteData( - table: "Set_VmiCategory", - keyColumn: "Id", - keyValue: new Guid("b3b321dd-5e0e-55b0-5548-70a742e9a4db")); - - migrationBuilder.DropColumn( - name: "Count", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "VmiCategoryId", - table: "Set_VmiLog"); - - migrationBuilder.RenameColumn( - name: "Category", - table: "Set_VmiLog", - newName: "D2"); - - migrationBuilder.RenameColumn( - name: "CustomOrderNumber", - table: "Set_VmiBalance", - newName: "Tmpe4"); - - migrationBuilder.AddColumn( - name: "BalanceId", - table: "Set_VmiLog", - type: "uniqueidentifier", - nullable: false, - defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); - - migrationBuilder.AddColumn( - name: "CategoryId", - table: "Set_VmiLog", - type: "uniqueidentifier", - nullable: false, - defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); - - migrationBuilder.AddColumn( - name: "Type", - table: "Set_VmiLog", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.InsertData( - table: "Set_VmiCategory", - columns: new[] { "Id", "Name", "Number", "Type" }, - values: new object[,] - { - { new Guid("a6462ee4-6e2c-bc8b-b1cb-5203c8dcaea8"), "发运", "100", 0 }, - { new Guid("869f1589-9063-a545-719e-a83b6dca03c3"), "结算", "200", 1 }, - { new Guid("3e0655a6-2532-a861-344f-b9c53c809c64"), "漏发补货", "600", 0 }, - { new Guid("27b1609e-05af-cef7-f5f4-dd598c31b4de"), "负库存补货", "700", 0 } - }); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiLog_BalanceId", - table: "Set_VmiLog", - column: "BalanceId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiLog_CategoryId", - table: "Set_VmiLog", - column: "CategoryId"); - - migrationBuilder.AddForeignKey( - name: "FK_Set_VmiLog_Set_VmiBalance_BalanceId", - table: "Set_VmiLog", - column: "BalanceId", - principalTable: "Set_VmiBalance", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Set_VmiLog_Set_VmiCategory_CategoryId", - table: "Set_VmiLog", - column: "CategoryId", - principalTable: "Set_VmiCategory", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727005325_vmi5.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727005325_vmi5.Designer.cs deleted file mode 100644 index 1e1a1259..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727005325_vmi5.Designer.cs +++ /dev/null @@ -1,4966 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230727005325_vmi5")] - partial class vmi5 - { - 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("SettleAccount.Domain.BQ.BBAC_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CustomOrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - Desc = "test", - ErpToLoc = "key1", - LU = "key3", - PartCode = "key2", - Qty = 0m, - ShippingDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - - b.HasData( - new - { - Id = new Guid("b3b321dd-5e0e-55b0-5548-70a742e9a4db"), - Name = "发运入库", - Number = "100", - Type = 0 - }, - new - { - Id = new Guid("a04d00ac-0e9c-064d-b7ce-af0b4d7c8c6b"), - Name = "结算出库", - Number = "200", - Type = 1 - }, - new - { - Id = new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), - Name = "客户退货", - Number = "300", - Type = 1 - }, - new - { - Id = new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), - Name = "调整入库", - Number = "400", - Type = 0 - }, - new - { - Id = new Guid("42230472-9f26-7484-ff2a-451878e9955f"), - Name = "调整出库", - Number = "500", - Type = 1 - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Category") - .HasColumnType("nvarchar(max)"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Count") - .HasColumnType("decimal(18,2)"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("F2") - .HasColumnType("nvarchar(max)"); - - b.Property("G2") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("H2") - .HasColumnType("nvarchar(max)"); - - b.Property("I2") - .HasColumnType("nvarchar(max)"); - - b.Property("J2") - .HasColumnType("nvarchar(max)"); - - b.Property("K2") - .HasColumnType("nvarchar(max)"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VmiCategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("VmiType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("VmiCategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", null) - .WithMany("Logs") - .HasForeignKey("VmiCategoryId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727005325_vmi5.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727005325_vmi5.cs deleted file mode 100644 index 3b238d17..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727005325_vmi5.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi5 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "IsDisabled", - table: "Set_JobItem", - type: "bit", - nullable: false, - defaultValue: false); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "IsDisabled", - table: "Set_JobItem"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727011426_202307270001.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727011426_202307270001.Designer.cs deleted file mode 100644 index 389e69ee..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727011426_202307270001.Designer.cs +++ /dev/null @@ -1,4991 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230727011426_202307270001")] - partial class _202307270001 - { - 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("SettleAccount.Domain.BQ.BBAC_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - Desc = "test", - ErpToLoc = "key1", - LU = "key3", - PartCode = "key2", - Qty = 0m, - ShippingDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - - b.HasData( - new - { - Id = new Guid("a6462ee4-6e2c-bc8b-b1cb-5203c8dcaea8"), - Name = "发运", - Number = "100", - Type = 0 - }, - new - { - Id = new Guid("869f1589-9063-a545-719e-a83b6dca03c3"), - Name = "结算", - Number = "200", - Type = 1 - }, - new - { - Id = new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), - Name = "客户退货", - Number = "300", - Type = 1 - }, - new - { - Id = new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), - Name = "调整入库", - Number = "400", - Type = 0 - }, - new - { - Id = new Guid("42230472-9f26-7484-ff2a-451878e9955f"), - Name = "调整出库", - Number = "500", - Type = 1 - }, - new - { - Id = new Guid("3e0655a6-2532-a861-344f-b9c53c809c64"), - Name = "漏发补货", - Number = "600", - Type = 0 - }, - new - { - Id = new Guid("27b1609e-05af-cef7-f5f4-dd598c31b4de"), - Name = "负库存补货", - Number = "700", - Type = 0 - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BalanceId") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("D2") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("F2") - .HasColumnType("nvarchar(max)"); - - b.Property("G2") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("H2") - .HasColumnType("nvarchar(max)"); - - b.Property("I2") - .HasColumnType("nvarchar(max)"); - - b.Property("J2") - .HasColumnType("nvarchar(max)"); - - b.Property("K2") - .HasColumnType("nvarchar(max)"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VmiType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", "Category") - .WithMany("Logs") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - - b.Navigation("Category"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727011426_202307270001.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727011426_202307270001.cs deleted file mode 100644 index 3b172f1f..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727011426_202307270001.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307270001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Extend3", - table: "Set_INVOICE_WAIT_DETAIL"); - - migrationBuilder.DropColumn( - name: "Extend4", - table: "Set_INVOICE_WAIT_DETAIL"); - - migrationBuilder.AddColumn( - name: "BeginDate", - table: "Set_INVOICE_WAIT_DETAIL", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "EndDate", - table: "Set_INVOICE_WAIT_DETAIL", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "BeginDate", - table: "Set_INVOICE_WAIT_DETAIL"); - - migrationBuilder.DropColumn( - name: "EndDate", - table: "Set_INVOICE_WAIT_DETAIL"); - - migrationBuilder.AddColumn( - name: "Extend3", - table: "Set_INVOICE_WAIT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "Extend4", - table: "Set_INVOICE_WAIT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727024321_20230727-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727024321_20230727-1.Designer.cs deleted file mode 100644 index 45e3a5a8..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727024321_20230727-1.Designer.cs +++ /dev/null @@ -1,5007 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230727024321_20230727-1")] - partial class _202307271 - { - 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("SettleAccount.Domain.BQ.BBAC_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CustomOrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - Desc = "test", - ErpToLoc = "key1", - LU = "key3", - PartCode = "key2", - Qty = 0m, - ShippingDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - - b.HasData( - new - { - Id = new Guid("b3b321dd-5e0e-55b0-5548-70a742e9a4db"), - Name = "发运入库", - Number = "100", - Type = 0 - }, - new - { - Id = new Guid("a04d00ac-0e9c-064d-b7ce-af0b4d7c8c6b"), - Name = "结算出库", - Number = "200", - Type = 1 - }, - new - { - Id = new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), - Name = "客户退货", - Number = "300", - Type = 1 - }, - new - { - Id = new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), - Name = "调整入库", - Number = "400", - Type = 0 - }, - new - { - Id = new Guid("42230472-9f26-7484-ff2a-451878e9955f"), - Name = "调整出库", - Number = "500", - Type = 1 - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Category") - .HasColumnType("nvarchar(max)"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Count") - .HasColumnType("decimal(18,2)"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("F2") - .HasColumnType("nvarchar(max)"); - - b.Property("G2") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("H2") - .HasColumnType("nvarchar(max)"); - - b.Property("I2") - .HasColumnType("nvarchar(max)"); - - b.Property("J2") - .HasColumnType("nvarchar(max)"); - - b.Property("K2") - .HasColumnType("nvarchar(max)"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VmiCategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("VmiType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("VmiCategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", null) - .WithMany("Logs") - .HasForeignKey("VmiCategoryId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727024321_20230727-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727024321_20230727-1.cs deleted file mode 100644 index 0bbe6499..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727024321_20230727-1.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307271 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68")); - - migrationBuilder.CreateTable( - name: "Set_SyncPositionFlag", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TableName = table.Column(type: "nvarchar(max)", nullable: true), - Position = 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_Set_SyncPositionFlag", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_SyncPositionFlag"); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsDisabled", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), null, "0 0/1 * * * ?", false, false, "HBPO发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.HBPOSeSyncAppService" }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727085151_202307270004.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727085151_202307270004.Designer.cs deleted file mode 100644 index d02d70c6..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727085151_202307270004.Designer.cs +++ /dev/null @@ -1,4874 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230727085151_202307270004")] - partial class _202307270004 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CustomOrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - Desc = "test", - ErpToLoc = "key1", - LU = "key3", - PartCode = "key2", - Qty = 0m, - ShippingDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - - b.HasData( - new - { - Id = new Guid("b3b321dd-5e0e-55b0-5548-70a742e9a4db"), - Name = "发运入库", - Number = "100", - Type = 0 - }, - new - { - Id = new Guid("a04d00ac-0e9c-064d-b7ce-af0b4d7c8c6b"), - Name = "结算出库", - Number = "200", - Type = 1 - }, - new - { - Id = new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), - Name = "客户退货", - Number = "300", - Type = 1 - }, - new - { - Id = new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), - Name = "调整入库", - Number = "400", - Type = 0 - }, - new - { - Id = new Guid("42230472-9f26-7484-ff2a-451878e9955f"), - Name = "调整出库", - Number = "500", - Type = 1 - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Category") - .HasColumnType("nvarchar(max)"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Count") - .HasColumnType("decimal(18,2)"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("F2") - .HasColumnType("nvarchar(max)"); - - b.Property("G2") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("H2") - .HasColumnType("nvarchar(max)"); - - b.Property("I2") - .HasColumnType("nvarchar(max)"); - - b.Property("J2") - .HasColumnType("nvarchar(max)"); - - b.Property("K2") - .HasColumnType("nvarchar(max)"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VmiCategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("VmiType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("VmiCategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", null) - .WithMany("Logs") - .HasForeignKey("VmiCategoryId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727085151_202307270004.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727085151_202307270004.cs deleted file mode 100644 index 7cc5b20c..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230727085151_202307270004.cs +++ /dev/null @@ -1,93 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307270004 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_BBAC_ADJ_DETAIL"); - - migrationBuilder.AddColumn( - name: "ParentInvbillNum", - table: "Set_INVOICE_GRP", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Tax", - table: "Set_INVOICE_GRP", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "IsReturn", - table: "Set_BBAC_CAN_SA_DETAIL", - type: "bit", - maxLength: 50, - nullable: false, - defaultValue: false, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ParentInvbillNum", - table: "Set_INVOICE_GRP"); - - migrationBuilder.DropColumn( - name: "Tax", - table: "Set_INVOICE_GRP"); - - migrationBuilder.AlterColumn( - name: "IsReturn", - table: "Set_BBAC_CAN_SA_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldMaxLength: 50); - - migrationBuilder.CreateTable( - name: "Set_BBAC_ADJ_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - BusinessType = table.Column(type: "int", nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ContractDocID = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - GroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - IsReturn = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - KeyCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LU = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - OldInvBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PN = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Price = table.Column(type: "decimal(18,2)", nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - SettleBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleDate = table.Column(type: "datetime2", nullable: false), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_BBAC_ADJ_DETAIL", x => x.Id); - }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230728013132_vmi6.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230728013132_vmi6.Designer.cs deleted file mode 100644 index 7dc40d7c..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230728013132_vmi6.Designer.cs +++ /dev/null @@ -1,4920 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230728013132_vmi6")] - partial class vmi6 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .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("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CustomOrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - Desc = "test", - ErpToLoc = "key1", - LU = "key3", - PartCode = "key2", - Qty = 0m, - ShippingDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - - b.HasData( - new - { - Id = new Guid("b3b321dd-5e0e-55b0-5548-70a742e9a4db"), - Name = "发运入库", - Number = "100", - Type = 0 - }, - new - { - Id = new Guid("a04d00ac-0e9c-064d-b7ce-af0b4d7c8c6b"), - Name = "结算出库", - Number = "200", - Type = 1 - }, - new - { - Id = new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), - Name = "客户退货", - Number = "300", - Type = 1 - }, - new - { - Id = new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), - Name = "调整入库", - Number = "400", - Type = 0 - }, - new - { - Id = new Guid("42230472-9f26-7484-ff2a-451878e9955f"), - Name = "调整出库", - Number = "500", - Type = 1 - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Category") - .HasColumnType("nvarchar(max)"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Count") - .HasColumnType("decimal(18,2)"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("F2") - .HasColumnType("nvarchar(max)"); - - b.Property("G2") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("H2") - .HasColumnType("nvarchar(max)"); - - b.Property("I2") - .HasColumnType("nvarchar(max)"); - - b.Property("J2") - .HasColumnType("nvarchar(max)"); - - b.Property("K2") - .HasColumnType("nvarchar(max)"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VmiCategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("VmiType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("VmiCategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", null) - .WithMany("Logs") - .HasForeignKey("VmiCategoryId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230728013132_vmi6.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230728013132_vmi6.cs deleted file mode 100644 index de7ea635..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230728013132_vmi6.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi6 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "End", - table: "Set_JobLog", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Host", - table: "Set_JobLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "Service", - value: "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Host", - table: "Set_JobLog"); - - migrationBuilder.AlterColumn( - name: "End", - table: "Set_JobLog", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "Service", - value: "Win.Sfs.SettleAccount.Entities.BQ.VmiService"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230731014604_20230731-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230731014604_20230731-1.Designer.cs deleted file mode 100644 index 7363adc1..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230731014604_20230731-1.Designer.cs +++ /dev/null @@ -1,4984 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230731014604_20230731-1")] - partial class _202307311 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CustomOrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - Desc = "test", - ErpToLoc = "key1", - LU = "key3", - PartCode = "key2", - Qty = 0m, - ShippingDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - - b.HasData( - new - { - Id = new Guid("b3b321dd-5e0e-55b0-5548-70a742e9a4db"), - Name = "发运入库", - Number = "100", - Type = 0 - }, - new - { - Id = new Guid("a04d00ac-0e9c-064d-b7ce-af0b4d7c8c6b"), - Name = "结算出库", - Number = "200", - Type = 1 - }, - new - { - Id = new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), - Name = "客户退货", - Number = "300", - Type = 1 - }, - new - { - Id = new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), - Name = "调整入库", - Number = "400", - Type = 0 - }, - new - { - Id = new Guid("42230472-9f26-7484-ff2a-451878e9955f"), - Name = "调整出库", - Number = "500", - Type = 1 - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Category") - .HasColumnType("nvarchar(max)"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Count") - .HasColumnType("decimal(18,2)"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("F2") - .HasColumnType("nvarchar(max)"); - - b.Property("G2") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("H2") - .HasColumnType("nvarchar(max)"); - - b.Property("I2") - .HasColumnType("nvarchar(max)"); - - b.Property("J2") - .HasColumnType("nvarchar(max)"); - - b.Property("K2") - .HasColumnType("nvarchar(max)"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VmiCategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("VmiType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("VmiCategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", null) - .WithMany("Logs") - .HasForeignKey("VmiCategoryId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230731014604_20230731-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230731014604_20230731-1.cs deleted file mode 100644 index 7f15cada..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230731014604_20230731-1.cs +++ /dev/null @@ -1,216 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307311 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "CreatorId", - table: "Set_VmiLog", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "LastModificationTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "LastModifierId", - table: "Set_VmiLog", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "Batch", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "BillTime", - table: "Set_PUB_SE_DETAIL", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "CustId", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeliveryHose", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeliveryIndex", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "DnBillNum", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "DnBillTime", - table: "Set_PUB_SE_DETAIL", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "DnOper", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromErpLocCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromHose", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Oper", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PartCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Remark", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ToErpLocCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ToHose", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "CreatorId", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "LastModificationTime", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "LastModifierId", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "Batch", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "BillTime", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "CustId", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeliveryHose", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeliveryIndex", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "DnBillNum", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "DnBillTime", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "DnOper", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "FromErpLocCode", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "FromHose", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "FromLocCode", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "Oper", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "PartCode", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "Remark", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "ToErpLocCode", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "ToHose", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "ToLocCode", - table: "Set_PUB_SE_DETAIL"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230731031816_20230731-2.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230731031816_20230731-2.Designer.cs deleted file mode 100644 index 43123a5e..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230731031816_20230731-2.Designer.cs +++ /dev/null @@ -1,5134 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230731031816_20230731-2")] - partial class _202307312 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CustomOrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - Desc = "test", - ErpToLoc = "key1", - LU = "key3", - PartCode = "key2", - Qty = 0m, - ShippingDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - - b.HasData( - new - { - Id = new Guid("b3b321dd-5e0e-55b0-5548-70a742e9a4db"), - Name = "发运入库", - Number = "100", - Type = 0 - }, - new - { - Id = new Guid("a04d00ac-0e9c-064d-b7ce-af0b4d7c8c6b"), - Name = "结算出库", - Number = "200", - Type = 1 - }, - new - { - Id = new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), - Name = "客户退货", - Number = "300", - Type = 1 - }, - new - { - Id = new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), - Name = "调整入库", - Number = "400", - Type = 0 - }, - new - { - Id = new Guid("42230472-9f26-7484-ff2a-451878e9955f"), - Name = "调整出库", - Number = "500", - Type = 1 - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Category") - .HasColumnType("nvarchar(max)"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Count") - .HasColumnType("decimal(18,2)"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("F2") - .HasColumnType("nvarchar(max)"); - - b.Property("G2") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("H2") - .HasColumnType("nvarchar(max)"); - - b.Property("I2") - .HasColumnType("nvarchar(max)"); - - b.Property("J2") - .HasColumnType("nvarchar(max)"); - - b.Property("K2") - .HasColumnType("nvarchar(max)"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VmiCategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("VmiType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("VmiCategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", null) - .WithMany("Logs") - .HasForeignKey("VmiCategoryId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230731031816_20230731-2.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230731031816_20230731-2.cs deleted file mode 100644 index 90717b19..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230731031816_20230731-2.cs +++ /dev/null @@ -1,516 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202307312 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Batch", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "BillCharacter", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "BillTime", - table: "Set_HBPO_SE_DETAIL", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "CodeType", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeliverCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpToLoc", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLoc", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "MESConfigCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "MatchNumber", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Num", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Oper", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OrderNum", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OrigiCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PartCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PjsNum", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Position", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealPartCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RefBillNum", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RefVinCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Remark", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Seq", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLoc", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "UniqueCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "VinCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Batch", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "BillCharacter", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "BillTime", - table: "Set_BBAC_SE_DETAIL", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "CodeType", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeliverCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpToLoc", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLoc", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "MESConfigCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "MatchNumber", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Num", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Oper", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OrderNum", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OrigiCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PartCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PjsNum", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Position", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealPartCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RefBillNum", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RefVinCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Remark", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Seq", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLoc", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "UniqueCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "VinCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Batch", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "BillCharacter", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "BillTime", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "CodeType", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeliverCode", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "ErpToLoc", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "FromLoc", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "MESConfigCode", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "MatchNumber", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "Num", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "Oper", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "OrderNum", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "OrigiCode", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "PartCode", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "PjsNum", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "Position", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "RealCode", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "RealPartCode", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "RefBillNum", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "RefVinCode", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "Remark", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "Seq", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "ToLoc", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "UniqueCode", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "VinCode", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "Batch", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "BillCharacter", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "BillTime", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "CodeType", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeliverCode", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "ErpToLoc", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "FromLoc", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "MESConfigCode", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "MatchNumber", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "Num", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "Oper", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "OrderNum", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "OrigiCode", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "PartCode", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "PjsNum", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "Position", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "RealCode", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "RealPartCode", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "RefBillNum", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "RefVinCode", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "Remark", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "Seq", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "ToLoc", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "UniqueCode", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "VinCode", - table: "Set_BBAC_SE_DETAIL"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230801054818_20230801-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230801054818_20230801-1.Designer.cs deleted file mode 100644 index d91283aa..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230801054818_20230801-1.Designer.cs +++ /dev/null @@ -1,5134 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230801054818_20230801-1")] - partial class _202308011 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CustomOrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - Desc = "test", - ErpToLoc = "key1", - LU = "key3", - PartCode = "key2", - Qty = 0m, - ShippingDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - - b.HasData( - new - { - Id = new Guid("b3b321dd-5e0e-55b0-5548-70a742e9a4db"), - Name = "发运入库", - Number = "100", - Type = 0 - }, - new - { - Id = new Guid("a04d00ac-0e9c-064d-b7ce-af0b4d7c8c6b"), - Name = "结算出库", - Number = "200", - Type = 1 - }, - new - { - Id = new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), - Name = "客户退货", - Number = "300", - Type = 1 - }, - new - { - Id = new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), - Name = "调整入库", - Number = "400", - Type = 0 - }, - new - { - Id = new Guid("42230472-9f26-7484-ff2a-451878e9955f"), - Name = "调整出库", - Number = "500", - Type = 1 - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Category") - .HasColumnType("nvarchar(max)"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Count") - .HasColumnType("decimal(18,2)"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("F2") - .HasColumnType("nvarchar(max)"); - - b.Property("G2") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("H2") - .HasColumnType("nvarchar(max)"); - - b.Property("I2") - .HasColumnType("nvarchar(max)"); - - b.Property("J2") - .HasColumnType("nvarchar(max)"); - - b.Property("K2") - .HasColumnType("nvarchar(max)"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VmiCategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("VmiType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("VmiCategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", null) - .WithMany("Logs") - .HasForeignKey("VmiCategoryId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230801054818_20230801-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230801054818_20230801-1.cs deleted file mode 100644 index 4405dad0..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230801054818_20230801-1.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308011 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_BBAC_SE_EDI", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "IsReturn", - table: "Set_BBAC_NOT_SA_DETAIL", - type: "bit", - maxLength: 50, - nullable: false, - defaultValue: false, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_BBAC_SE_EDI", - type: "int", - nullable: false, - defaultValue: 0, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "IsReturn", - table: "Set_BBAC_NOT_SA_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldMaxLength: 50); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803013930_vmi7.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803013930_vmi7.Designer.cs deleted file mode 100644 index 4619b468..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803013930_vmi7.Designer.cs +++ /dev/null @@ -1,5024 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230803013930_vmi7")] - partial class vmi7 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CustomOrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - DeliverBillType = 0, - DeliverSubBillType = 0, - ErpToLoc = "key1", - LU = "key3", - PartCode = "key2", - Qty = 0m, - Remark = "test", - ShippingDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("Count") - .HasColumnType("decimal(18,2)"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CustomOrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("No1") - .HasColumnType("nvarchar(max)"); - - b.Property("No2") - .HasColumnType("nvarchar(max)"); - - b.Property("No3") - .HasColumnType("nvarchar(max)"); - - b.Property("No4") - .HasColumnType("nvarchar(max)"); - - b.Property("No5") - .HasColumnType("nvarchar(max)"); - - b.Property("No6") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RelationNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803013930_vmi7.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803013930_vmi7.cs deleted file mode 100644 index 8b8b1a35..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803013930_vmi7.cs +++ /dev/null @@ -1,384 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi7 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Set_VmiLog_Set_VmiCategory_VmiCategoryId", - table: "Set_VmiLog"); - - migrationBuilder.DropTable( - name: "Set_VmiCategory"); - - migrationBuilder.DropIndex( - name: "IX_Set_VmiLog_VmiCategoryId", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "BalanceDesc", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "Category", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "CodeType", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "CreatorId", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "F2", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "G2", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "H2", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "I2", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "LastModificationTime", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "LastModifierId", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "VmiCategoryId", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "CodeType", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "Desc", - table: "Set_VmiBalance"); - - migrationBuilder.RenameColumn( - name: "VmiType", - table: "Set_VmiLog", - newName: "LogType"); - - migrationBuilder.RenameColumn( - name: "VinCode", - table: "Set_VmiLog", - newName: "RelationNumber"); - - migrationBuilder.RenameColumn( - name: "UniqueCode", - table: "Set_VmiLog", - newName: "No6"); - - migrationBuilder.RenameColumn( - name: "Tmpe4", - table: "Set_VmiLog", - newName: "No5"); - - migrationBuilder.RenameColumn( - name: "ProType", - table: "Set_VmiLog", - newName: "No4"); - - migrationBuilder.RenameColumn( - name: "PartCode", - table: "Set_VmiLog", - newName: "No3"); - - migrationBuilder.RenameColumn( - name: "OrderNumber", - table: "Set_VmiLog", - newName: "No2"); - - migrationBuilder.RenameColumn( - name: "LU", - table: "Set_VmiLog", - newName: "No1"); - - migrationBuilder.RenameColumn( - name: "K2", - table: "Set_VmiLog", - newName: "DeliverSubBillType"); - - migrationBuilder.RenameColumn( - name: "J2", - table: "Set_VmiLog", - newName: "CustomOrderNumber"); - - migrationBuilder.RenameColumn( - name: "CreatedDate", - table: "Set_VmiLog", - newName: "CreatedTime"); - - migrationBuilder.RenameColumn( - name: "ProType", - table: "Set_VmiBalance", - newName: "Remark"); - - migrationBuilder.AddColumn( - name: "ChangedType", - table: "Set_VmiLog", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "DeliverBillType", - table: "Set_VmiLog", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "DeliverBillType", - table: "Set_VmiBalance", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "DeliverSubBillType", - table: "Set_VmiBalance", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.UpdateData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - column: "Remark", - value: "test"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ChangedType", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "DeliverBillType", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "DeliverBillType", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "DeliverSubBillType", - table: "Set_VmiBalance"); - - migrationBuilder.RenameColumn( - name: "RelationNumber", - table: "Set_VmiLog", - newName: "VinCode"); - - migrationBuilder.RenameColumn( - name: "No6", - table: "Set_VmiLog", - newName: "UniqueCode"); - - migrationBuilder.RenameColumn( - name: "No5", - table: "Set_VmiLog", - newName: "Tmpe4"); - - migrationBuilder.RenameColumn( - name: "No4", - table: "Set_VmiLog", - newName: "ProType"); - - migrationBuilder.RenameColumn( - name: "No3", - table: "Set_VmiLog", - newName: "PartCode"); - - migrationBuilder.RenameColumn( - name: "No2", - table: "Set_VmiLog", - newName: "OrderNumber"); - - migrationBuilder.RenameColumn( - name: "No1", - table: "Set_VmiLog", - newName: "LU"); - - migrationBuilder.RenameColumn( - name: "LogType", - table: "Set_VmiLog", - newName: "VmiType"); - - migrationBuilder.RenameColumn( - name: "DeliverSubBillType", - table: "Set_VmiLog", - newName: "K2"); - - migrationBuilder.RenameColumn( - name: "CustomOrderNumber", - table: "Set_VmiLog", - newName: "J2"); - - migrationBuilder.RenameColumn( - name: "CreatedTime", - table: "Set_VmiLog", - newName: "CreatedDate"); - - migrationBuilder.RenameColumn( - name: "Remark", - table: "Set_VmiBalance", - newName: "ProType"); - - migrationBuilder.AddColumn( - name: "BalanceDesc", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Category", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "CodeType", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "CreatorId", - table: "Set_VmiLog", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "F2", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "G2", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "H2", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "I2", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "LastModificationTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "LastModifierId", - table: "Set_VmiLog", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "VmiCategoryId", - table: "Set_VmiLog", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "CodeType", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Desc", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.CreateTable( - name: "Set_VmiCategory", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Number = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Type = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_VmiCategory", x => x.Id); - }); - - migrationBuilder.UpdateData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - columns: new[] { "Desc", "ProType" }, - values: new object[] { "test", null }); - - migrationBuilder.InsertData( - table: "Set_VmiCategory", - columns: new[] { "Id", "Name", "Number", "Type" }, - values: new object[,] - { - { new Guid("b3b321dd-5e0e-55b0-5548-70a742e9a4db"), "发运入库", "100", 0 }, - { new Guid("a04d00ac-0e9c-064d-b7ce-af0b4d7c8c6b"), "结算出库", "200", 1 }, - { new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), "客户退货", "300", 1 }, - { new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), "调整入库", "400", 0 }, - { new Guid("42230472-9f26-7484-ff2a-451878e9955f"), "调整出库", "500", 1 } - }); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiLog_VmiCategoryId", - table: "Set_VmiLog", - column: "VmiCategoryId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiCategory_Name", - table: "Set_VmiCategory", - column: "Name", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiCategory_Number", - table: "Set_VmiCategory", - column: "Number", - unique: true); - - migrationBuilder.AddForeignKey( - name: "FK_Set_VmiLog_Set_VmiCategory_VmiCategoryId", - table: "Set_VmiLog", - column: "VmiCategoryId", - principalTable: "Set_VmiCategory", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803033051_20230803-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803033051_20230803-1.Designer.cs deleted file mode 100644 index c843a68a..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803033051_20230803-1.Designer.cs +++ /dev/null @@ -1,5120 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230803033051_20230803-1")] - partial class _202308031 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CustomOrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LU") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("ErpToLoc", "PartCode", "LU"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), - CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - Desc = "test", - ErpToLoc = "key1", - LU = "key3", - PartCode = "key2", - Qty = 0m, - ShippingDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Set_VmiCategory"); - - b.HasData( - new - { - Id = new Guid("b3b321dd-5e0e-55b0-5548-70a742e9a4db"), - Name = "发运入库", - Number = "100", - Type = 0 - }, - new - { - Id = new Guid("a04d00ac-0e9c-064d-b7ce-af0b4d7c8c6b"), - Name = "结算出库", - Number = "200", - Type = 1 - }, - new - { - Id = new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), - Name = "客户退货", - Number = "300", - Type = 1 - }, - new - { - Id = new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), - Name = "调整入库", - Number = "400", - Type = 0 - }, - new - { - Id = new Guid("42230472-9f26-7484-ff2a-451878e9955f"), - Name = "调整出库", - Number = "500", - Type = 1 - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BalanceDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Category") - .HasColumnType("nvarchar(max)"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Count") - .HasColumnType("decimal(18,2)"); - - b.Property("CreatedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("F2") - .HasColumnType("nvarchar(max)"); - - b.Property("G2") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("H2") - .HasColumnType("nvarchar(max)"); - - b.Property("I2") - .HasColumnType("nvarchar(max)"); - - b.Property("J2") - .HasColumnType("nvarchar(max)"); - - b.Property("K2") - .HasColumnType("nvarchar(max)"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Tmpe4") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VmiCategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("VmiType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("VmiCategoryId"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", null) - .WithMany("Logs") - .HasForeignKey("VmiCategoryId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiCategory", b => - { - b.Navigation("Logs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803033051_20230803-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803033051_20230803-1.cs deleted file mode 100644 index 0bf5d09d..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230803033051_20230803-1.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308031 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_BBAC_SA"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_BBAC_SA"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_BBAC_SA"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_BBAC_SA", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_BBAC_SA", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_BBAC_SA", - type: "bit", - nullable: false, - defaultValue: false); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807024652_vmi8.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807024652_vmi8.Designer.cs deleted file mode 100644 index 46357fba..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807024652_vmi8.Designer.cs +++ /dev/null @@ -1,5035 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230807024652_vmi8")] - partial class vmi8 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("Count") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807024652_vmi8.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807024652_vmi8.cs deleted file mode 100644 index 9f849b1a..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807024652_vmi8.cs +++ /dev/null @@ -1,391 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi8 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropUniqueConstraint( - name: "AK_Set_VmiBalance_ErpToLoc_PartCode_LU", - table: "Set_VmiBalance"); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6")); - - migrationBuilder.RenameColumn( - name: "ShippingDate", - table: "Set_VmiLog", - newName: "DeliverTime"); - - migrationBuilder.RenameColumn( - name: "SeqNumber", - table: "Set_VmiLog", - newName: "factory"); - - migrationBuilder.RenameColumn( - name: "RelationNumber", - table: "Set_VmiLog", - newName: "VinCode"); - - migrationBuilder.RenameColumn( - name: "No6", - table: "Set_VmiLog", - newName: "UniqueCode"); - - migrationBuilder.RenameColumn( - name: "No5", - table: "Set_VmiLog", - newName: "SettlementVinCode"); - - migrationBuilder.RenameColumn( - name: "No4", - table: "Set_VmiLog", - newName: "Seq"); - - migrationBuilder.RenameColumn( - name: "No3", - table: "Set_VmiLog", - newName: "RealCode"); - - migrationBuilder.RenameColumn( - name: "No2", - table: "Set_VmiLog", - newName: "ReMark"); - - migrationBuilder.RenameColumn( - name: "No1", - table: "Set_VmiLog", - newName: "PartCode2"); - - migrationBuilder.RenameColumn( - name: "Desc", - table: "Set_VmiLog", - newName: "PartCode"); - - migrationBuilder.RenameColumn( - name: "DeliverSubBillType", - table: "Set_VmiLog", - newName: "OrderNum"); - - migrationBuilder.RenameColumn( - name: "DeliverBillType", - table: "Set_VmiLog", - newName: "SubBillType"); - - migrationBuilder.RenameColumn( - name: "CustomOrderNumber", - table: "Set_VmiLog", - newName: "CustomerPartCode"); - - migrationBuilder.RenameColumn( - name: "CreationTime", - table: "Set_VmiLog", - newName: "ChangedTime"); - - migrationBuilder.RenameColumn( - name: "CreatedTime", - table: "Set_VmiLog", - newName: "BillTime"); - - migrationBuilder.RenameColumn( - name: "CreatedBy", - table: "Set_VmiLog", - newName: "Configcode"); - - migrationBuilder.RenameColumn( - name: "Remark", - table: "Set_VmiBalance", - newName: "ReMark"); - - migrationBuilder.RenameColumn( - name: "ShippingDate", - table: "Set_VmiBalance", - newName: "DeliverTime"); - - migrationBuilder.RenameColumn( - name: "SeqNumber", - table: "Set_VmiBalance", - newName: "factory"); - - migrationBuilder.RenameColumn( - name: "LU", - table: "Set_VmiBalance", - newName: "OrderNum"); - - migrationBuilder.RenameColumn( - name: "DeliverSubBillType", - table: "Set_VmiBalance", - newName: "SubBillType"); - - migrationBuilder.RenameColumn( - name: "DeliverBillType", - table: "Set_VmiBalance", - newName: "BillType"); - - migrationBuilder.RenameColumn( - name: "CustomOrderNumber", - table: "Set_VmiBalance", - newName: "Seq"); - - migrationBuilder.RenameColumn( - name: "CreationTime", - table: "Set_VmiBalance", - newName: "BillTime"); - - migrationBuilder.AddColumn( - name: "BillType", - table: "Set_VmiLog", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "ChangedBy", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ChangedNumber", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "CodeType", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsReplenished", - table: "Set_VmiLog", - type: "bit", - nullable: true); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "CodeType", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Configcode", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "CustomerPartCode", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddUniqueConstraint( - name: "AK_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum", - table: "Set_VmiBalance", - columns: new[] { "BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum" }); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BillTime", "BillType", "CodeType", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropUniqueConstraint( - name: "AK_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum", - table: "Set_VmiBalance"); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873")); - - migrationBuilder.DropColumn( - name: "BillType", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "ChangedBy", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "ChangedNumber", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "CodeType", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "IsReplenished", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "CodeType", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "Configcode", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "CustomerPartCode", - table: "Set_VmiBalance"); - - migrationBuilder.RenameColumn( - name: "factory", - table: "Set_VmiLog", - newName: "SeqNumber"); - - migrationBuilder.RenameColumn( - name: "VinCode", - table: "Set_VmiLog", - newName: "RelationNumber"); - - migrationBuilder.RenameColumn( - name: "UniqueCode", - table: "Set_VmiLog", - newName: "No6"); - - migrationBuilder.RenameColumn( - name: "SubBillType", - table: "Set_VmiLog", - newName: "DeliverBillType"); - - migrationBuilder.RenameColumn( - name: "SettlementVinCode", - table: "Set_VmiLog", - newName: "No5"); - - migrationBuilder.RenameColumn( - name: "Seq", - table: "Set_VmiLog", - newName: "No4"); - - migrationBuilder.RenameColumn( - name: "RealCode", - table: "Set_VmiLog", - newName: "No3"); - - migrationBuilder.RenameColumn( - name: "ReMark", - table: "Set_VmiLog", - newName: "No2"); - - migrationBuilder.RenameColumn( - name: "PartCode2", - table: "Set_VmiLog", - newName: "No1"); - - migrationBuilder.RenameColumn( - name: "PartCode", - table: "Set_VmiLog", - newName: "Desc"); - - migrationBuilder.RenameColumn( - name: "OrderNum", - table: "Set_VmiLog", - newName: "DeliverSubBillType"); - - migrationBuilder.RenameColumn( - name: "DeliverTime", - table: "Set_VmiLog", - newName: "ShippingDate"); - - migrationBuilder.RenameColumn( - name: "CustomerPartCode", - table: "Set_VmiLog", - newName: "CustomOrderNumber"); - - migrationBuilder.RenameColumn( - name: "Configcode", - table: "Set_VmiLog", - newName: "CreatedBy"); - - migrationBuilder.RenameColumn( - name: "ChangedTime", - table: "Set_VmiLog", - newName: "CreationTime"); - - migrationBuilder.RenameColumn( - name: "BillTime", - table: "Set_VmiLog", - newName: "CreatedTime"); - - migrationBuilder.RenameColumn( - name: "ReMark", - table: "Set_VmiBalance", - newName: "Remark"); - - migrationBuilder.RenameColumn( - name: "factory", - table: "Set_VmiBalance", - newName: "SeqNumber"); - - migrationBuilder.RenameColumn( - name: "SubBillType", - table: "Set_VmiBalance", - newName: "DeliverSubBillType"); - - migrationBuilder.RenameColumn( - name: "Seq", - table: "Set_VmiBalance", - newName: "CustomOrderNumber"); - - migrationBuilder.RenameColumn( - name: "OrderNum", - table: "Set_VmiBalance", - newName: "LU"); - - migrationBuilder.RenameColumn( - name: "DeliverTime", - table: "Set_VmiBalance", - newName: "ShippingDate"); - - migrationBuilder.RenameColumn( - name: "BillType", - table: "Set_VmiBalance", - newName: "DeliverBillType"); - - migrationBuilder.RenameColumn( - name: "BillTime", - table: "Set_VmiBalance", - newName: "CreationTime"); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)"); - - migrationBuilder.AddUniqueConstraint( - name: "AK_Set_VmiBalance_ErpToLoc_PartCode_LU", - table: "Set_VmiBalance", - columns: new[] { "ErpToLoc", "PartCode", "LU" }); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "CreationTime", "CustomOrderNumber", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "LU", "MatchNumber", "PartCode", "PjsNum", "Qty", "Remark", "SeqNumber", "ShippingDate", "UniqueCode", "VinCode" }, - values: new object[] { new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, 0, 0, "key1", "key3", null, "key2", null, 0m, "test", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807054442_vmi9.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807054442_vmi9.Designer.cs deleted file mode 100644 index 5c2941a2..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807054442_vmi9.Designer.cs +++ /dev/null @@ -1,5048 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230807054442_vmi9")] - partial class vmi9 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "887ca64c266c48ac82dca90534f64225", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807054442_vmi9.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807054442_vmi9.cs deleted file mode 100644 index 33272c7c..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807054442_vmi9.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi9 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn( - name: "Count", - table: "Set_VmiLog", - newName: "ChangedQty"); - - migrationBuilder.AddColumn( - name: "BackupTime", - table: "Set_VmiBalance", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "ConcurrencyStamp", - table: "Set_VmiBalance", - type: "nvarchar(40)", - maxLength: 40, - nullable: true); - - migrationBuilder.AddColumn( - name: "RealCode", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - column: "ConcurrencyStamp", - value: "887ca64c266c48ac82dca90534f64225"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "BackupTime", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "ConcurrencyStamp", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "RealCode", - table: "Set_VmiBalance"); - - migrationBuilder.RenameColumn( - name: "ChangedQty", - table: "Set_VmiLog", - newName: "Count"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807063408_vmi10.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807063408_vmi10.Designer.cs deleted file mode 100644 index 9d2ecb54..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807063408_vmi10.Designer.cs +++ /dev/null @@ -1,5051 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230807063408_vmi10")] - partial class vmi10 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "2cc9803a5a8e420b80134104653ecde0", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807063408_vmi10.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807063408_vmi10.cs deleted file mode 100644 index 84a64fbd..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807063408_vmi10.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi10 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "HeartBeat", - table: "Set_JobItem", - type: "datetime2", - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - column: "ConcurrencyStamp", - value: "2cc9803a5a8e420b80134104653ecde0"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "HeartBeat", - table: "Set_JobItem"); - - migrationBuilder.UpdateData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - column: "ConcurrencyStamp", - value: "887ca64c266c48ac82dca90534f64225"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807064336_202308070001.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807064336_202308070001.Designer.cs deleted file mode 100644 index 8bbb206e..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807064336_202308070001.Designer.cs +++ /dev/null @@ -1,5057 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230807064336_202308070001")] - partial class _202308070001 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "2e626de3941048399abf1f76c051f8a4", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807064336_202308070001.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807064336_202308070001.cs deleted file mode 100644 index ed0920b2..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230807064336_202308070001.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308070001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "InvbillNum", - table: "Set_PUB_CAN_SA_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "InvbillNum", - table: "Set_HBPO_CAN_SA_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "InvbillNum", - table: "Set_BBAC_CAN_SA_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - column: "ConcurrencyStamp", - value: "2e626de3941048399abf1f76c051f8a4"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "InvbillNum", - table: "Set_PUB_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "InvbillNum", - table: "Set_HBPO_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "InvbillNum", - table: "Set_BBAC_CAN_SA_DETAIL"); - - migrationBuilder.UpdateData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - column: "ConcurrencyStamp", - value: "887ca64c266c48ac82dca90534f64225"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808023302_202308080001.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808023302_202308080001.Designer.cs deleted file mode 100644 index ea7d13d5..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808023302_202308080001.Designer.cs +++ /dev/null @@ -1,5279 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230808023302_202308080001")] - partial class _202308080001 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "f0b58114c8bf4491b657f275bd0631b0", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808023302_202308080001.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808023302_202308080001.cs deleted file mode 100644 index 60312af8..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808023302_202308080001.cs +++ /dev/null @@ -1,104 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308080001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - - migrationBuilder.CreateTable( - name: "Set_BBAC_PD", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Version = table.Column(type: "int", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - State = table.Column(type: "int", nullable: false), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_BBAC_PD", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_HBPO_PD", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Version = table.Column(type: "int", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - State = table.Column(type: "int", nullable: false), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_HBPO_PD", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PUB_PD", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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), - Version = table.Column(type: "int", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - State = table.Column(type: "int", nullable: false), - InvGroupNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_PUB_PD", x => x.Id); - }); - - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_BBAC_PD"); - - migrationBuilder.DropTable( - name: "Set_HBPO_PD"); - - migrationBuilder.DropTable( - name: "Set_PUB_PD"); - - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808055821_20230808-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808055821_20230808-1.Designer.cs deleted file mode 100644 index 80832dfe..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808055821_20230808-1.Designer.cs +++ /dev/null @@ -1,5288 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230808055821_20230808-1")] - partial class _202308081 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "210607a13a294958a95ea0faddc6eb65", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808055821_20230808-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808055821_20230808-1.cs deleted file mode 100644 index 73d3e5f7..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808055821_20230808-1.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308081 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "Cron", "HeartBeat", "IsDisabled", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), "0 0/30 * * * ? ", null, false, false, "直供件BBAC发运同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" }); - - migrationBuilder.UpdateData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - column: "ConcurrencyStamp", - value: "210607a13a294958a95ea0faddc6eb65"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4")); - - migrationBuilder.UpdateData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - column: "ConcurrencyStamp", - value: "f0b58114c8bf4491b657f275bd0631b0"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808062331_20230808-2.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808062331_20230808-2.Designer.cs deleted file mode 100644 index 42b46a33..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808062331_20230808-2.Designer.cs +++ /dev/null @@ -1,5333 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230808062331_20230808-2")] - partial class _202308082 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" - }, - new - { - Id = new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasAlternateKey("BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "7ee5d3ed981d4f87963af8b5654cd9df", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808062331_20230808-2.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808062331_20230808-2.cs deleted file mode 100644 index 073f172e..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230808062331_20230808-2.cs +++ /dev/null @@ -1,79 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308082 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "Cron", - value: "0 0/10 * * * ? "); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "Cron", "HeartBeat", "IsDisabled", "IsRunning", "Name", "Service" }, - values: new object[,] - { - { new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), "0 0/10 * * * ? ", null, false, false, "BBAC发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" }, - { new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), "0 0/10 * * * ? ", null, false, false, "HBPO发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" }, - { new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), "0 0/10 * * * ? ", null, false, false, "直供件HBPO发运同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" }, - { new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), "0 0/10 * * * ? ", null, false, false, "备件发运同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" }, - { new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), "0 0/10 * * * ? ", null, false, false, "印度件发运同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" } - }); - - migrationBuilder.UpdateData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - column: "ConcurrencyStamp", - value: "7ee5d3ed981d4f87963af8b5654cd9df"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2")); - - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b")); - - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe")); - - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68")); - - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68")); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "Cron", - value: "0 0/30 * * * ? "); - - migrationBuilder.UpdateData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - column: "ConcurrencyStamp", - value: "210607a13a294958a95ea0faddc6eb65"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809035500_vmi11.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809035500_vmi11.Designer.cs deleted file mode 100644 index 1181e0d0..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809035500_vmi11.Designer.cs +++ /dev/null @@ -1,5349 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230809035500_vmi11")] - partial class vmi11 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" - }, - new - { - Id = new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum") - .IsUnique() - .HasFilter("[PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "4affb77e506d43dda8bc322162fcb335", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809035500_vmi11.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809035500_vmi11.cs deleted file mode 100644 index f6025f61..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809035500_vmi11.cs +++ /dev/null @@ -1,186 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi11 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropUniqueConstraint( - name: "AK_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum", - table: "Set_VmiBalance"); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)"); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)"); - - migrationBuilder.AlterColumn( - name: "OrderNum", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)"); - - migrationBuilder.AlterColumn( - name: "ErpToLoc", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)"); - - migrationBuilder.AddColumn( - name: "BillType", - table: "Set_PUB_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "DeliverBillType", - table: "Set_PUB_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "DeliverSubBillType", - table: "Set_PUB_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "ProType", - table: "Set_PUB_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "SubBillType", - table: "Set_PUB_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "TransType", - table: "Set_PUB_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.UpdateData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - column: "ConcurrencyStamp", - value: "4affb77e506d43dda8bc322162fcb335"); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum", - table: "Set_VmiBalance", - columns: new[] { "BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum" }, - unique: true, - filter: "[PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "BillType", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeliverBillType", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeliverSubBillType", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "ProType", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "SubBillType", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "TransType", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OrderNum", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ErpToLoc", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AddUniqueConstraint( - name: "AK_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum", - table: "Set_VmiBalance", - columns: new[] { "BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum" }); - - migrationBuilder.UpdateData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), - column: "ConcurrencyStamp", - value: "7ee5d3ed981d4f87963af8b5654cd9df"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809054836_20230809-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809054836_20230809-1.Designer.cs deleted file mode 100644 index 1442494e..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809054836_20230809-1.Designer.cs +++ /dev/null @@ -1,5355 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230809054836_20230809-1")] - partial class _202308091 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" - }, - new - { - Id = new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum") - .IsUnique() - .HasFilter("[PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("3f870b27-55b4-470b-8c44-abb68145e3c8"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "d8fd025b2b0f4872bfa9a40f9f3df4b9", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809054836_20230809-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809054836_20230809-1.cs deleted file mode 100644 index 8eb9336c..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809054836_20230809-1.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308091 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873")); - - migrationBuilder.AddColumn( - name: "IsHaveSeData", - table: "Set_HBPO_SE_EDI", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "IsHaveEdiData", - table: "Set_HBPO_SE_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("3f870b27-55b4-470b-8c44-abb68145e3c8"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "d8fd025b2b0f4872bfa9a40f9f3df4b9", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("3f870b27-55b4-470b-8c44-abb68145e3c8")); - - migrationBuilder.DropColumn( - name: "IsHaveSeData", - table: "Set_HBPO_SE_EDI"); - - migrationBuilder.DropColumn( - name: "IsHaveEdiData", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "4affb77e506d43dda8bc322162fcb335", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809074216_20230809-2.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809074216_20230809-2.Designer.cs deleted file mode 100644 index 8f2c1808..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809074216_20230809-2.Designer.cs +++ /dev/null @@ -1,5341 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230809074216_20230809-2")] - partial class _202308092 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" - }, - new - { - Id = new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum") - .IsUnique() - .HasFilter("[PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("b6018a04-ee6d-447f-8fb8-81eb287a7ebc"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "02418a7349a942d4b3e1fe9a3968a908", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809074216_20230809-2.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809074216_20230809-2.cs deleted file mode 100644 index 05cb9440..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230809074216_20230809-2.cs +++ /dev/null @@ -1,65 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308092 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("3f870b27-55b4-470b-8c44-abb68145e3c8")); - - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_PUB_SA"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_PUB_SA"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_PUB_SA"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("b6018a04-ee6d-447f-8fb8-81eb287a7ebc"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "02418a7349a942d4b3e1fe9a3968a908", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("b6018a04-ee6d-447f-8fb8-81eb287a7ebc")); - - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_PUB_SA", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_PUB_SA", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_PUB_SA", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("3f870b27-55b4-470b-8c44-abb68145e3c8"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "d8fd025b2b0f4872bfa9a40f9f3df4b9", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810003703_202308100001.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810003703_202308100001.Designer.cs deleted file mode 100644 index c557e808..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810003703_202308100001.Designer.cs +++ /dev/null @@ -1,5377 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230810003703_202308100001")] - partial class _202308100001 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" - }, - new - { - Id = new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("6c0cbeb6-6530-4ede-ac96-d0f294f76086"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "4d0aea6c7eb24ecf908624ef4ffc315a", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810003703_202308100001.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810003703_202308100001.cs deleted file mode 100644 index 18fe2b71..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810003703_202308100001.cs +++ /dev/null @@ -1,233 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308100001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum", - table: "Set_VmiBalance"); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("b6018a04-ee6d-447f-8fb8-81eb287a7ebc")); - - migrationBuilder.AlterColumn( - name: "factory", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Configcode", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CodeType", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "PartCode", - table: "Set_PUB_NOT_SA_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PartCode", - table: "Set_PUB_CAN_SA_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PartCode", - table: "Set_PUB_ADJ_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ClientCode", - table: "Set_INVOICE_GRP", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PreTaxDiff", - table: "Set_INVOICE_GRP", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "RealAmt", - table: "Set_INVOICE_GRP", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "TaxDiff", - table: "Set_INVOICE_GRP", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "PartCode", - table: "Set_HBPO_NOT_SA_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PartCode", - table: "Set_HBPO_CAN_SA_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PartCode", - table: "Set_HBPO_ADJ_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PartCode", - table: "Set_BBAC_NOT_SA_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PartCode", - table: "Set_BBAC_CAN_SA_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("6c0cbeb6-6530-4ede-ac96-d0f294f76086"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "4d0aea6c7eb24ecf908624ef4ffc315a", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiBalance_BillType_CodeType_PartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", - table: "Set_VmiBalance", - columns: new[] { "BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode" }, - unique: true, - filter: "[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_VmiBalance_BillType_CodeType_PartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", - table: "Set_VmiBalance"); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("6c0cbeb6-6530-4ede-ac96-d0f294f76086")); - - migrationBuilder.DropColumn( - name: "PartCode", - table: "Set_PUB_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "PartCode", - table: "Set_PUB_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "PartCode", - table: "Set_PUB_ADJ_DETAIL"); - - migrationBuilder.DropColumn( - name: "ClientCode", - table: "Set_INVOICE_GRP"); - - migrationBuilder.DropColumn( - name: "PreTaxDiff", - table: "Set_INVOICE_GRP"); - - migrationBuilder.DropColumn( - name: "RealAmt", - table: "Set_INVOICE_GRP"); - - migrationBuilder.DropColumn( - name: "TaxDiff", - table: "Set_INVOICE_GRP"); - - migrationBuilder.DropColumn( - name: "PartCode", - table: "Set_HBPO_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "PartCode", - table: "Set_HBPO_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "PartCode", - table: "Set_HBPO_ADJ_DETAIL"); - - migrationBuilder.DropColumn( - name: "PartCode", - table: "Set_BBAC_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "PartCode", - table: "Set_BBAC_CAN_SA_DETAIL"); - - migrationBuilder.AlterColumn( - name: "factory", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Configcode", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CodeType", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("b6018a04-ee6d-447f-8fb8-81eb287a7ebc"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "02418a7349a942d4b3e1fe9a3968a908", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum", - table: "Set_VmiBalance", - columns: new[] { "BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum" }, - unique: true, - filter: "[PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810012032_20230810-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810012032_20230810-1.Designer.cs deleted file mode 100644 index 31b9172f..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810012032_20230810-1.Designer.cs +++ /dev/null @@ -1,5386 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230810012032_20230810-1")] - partial class _202308101 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" - }, - new - { - Id = new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("ce5291a6-b9d4-48b4-9c6d-4ce09ed4cbf9"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "3f981885343b41278337f1b6de40088b", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810012032_20230810-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810012032_20230810-1.cs deleted file mode 100644 index 80f42879..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810012032_20230810-1.cs +++ /dev/null @@ -1,64 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308101 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("6c0cbeb6-6530-4ede-ac96-d0f294f76086")); - - migrationBuilder.AddColumn( - name: "PartCode", - table: "Set_PUB_SA_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PartCode", - table: "Set_HBPO_SA_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PartCode", - table: "Set_BBAC_SA_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("ce5291a6-b9d4-48b4-9c6d-4ce09ed4cbf9"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "3f981885343b41278337f1b6de40088b", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ce5291a6-b9d4-48b4-9c6d-4ce09ed4cbf9")); - - migrationBuilder.DropColumn( - name: "PartCode", - table: "Set_PUB_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "PartCode", - table: "Set_HBPO_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "PartCode", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("6c0cbeb6-6530-4ede-ac96-d0f294f76086"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "4d0aea6c7eb24ecf908624ef4ffc315a", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810025021_20230810-2.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810025021_20230810-2.Designer.cs deleted file mode 100644 index 67cd18e3..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810025021_20230810-2.Designer.cs +++ /dev/null @@ -1,5395 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230810025021_20230810-2")] - partial class _202308102 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" - }, - new - { - Id = new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("96b1beec-0eef-4ae5-880b-23678addb759"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "ebf2d34687e14358a9d63dbe3df7abd3", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810025021_20230810-2.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810025021_20230810-2.cs deleted file mode 100644 index 079cd37b..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810025021_20230810-2.cs +++ /dev/null @@ -1,67 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308102 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ce5291a6-b9d4-48b4-9c6d-4ce09ed4cbf9")); - - migrationBuilder.AddColumn( - name: "IsMaiDan", - table: "Set_BBAC_SA_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "IsMaiDan", - table: "Set_BBAC_NOT_SA_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "IsMaiDan", - table: "Set_BBAC_CAN_SA_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("96b1beec-0eef-4ae5-880b-23678addb759"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "ebf2d34687e14358a9d63dbe3df7abd3", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("96b1beec-0eef-4ae5-880b-23678addb759")); - - migrationBuilder.DropColumn( - name: "IsMaiDan", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "IsMaiDan", - table: "Set_BBAC_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "IsMaiDan", - table: "Set_BBAC_CAN_SA_DETAIL"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("ce5291a6-b9d4-48b4-9c6d-4ce09ed4cbf9"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "3f981885343b41278337f1b6de40088b", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810081159_20230810-3.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810081159_20230810-3.Designer.cs deleted file mode 100644 index 0a865585..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810081159_20230810-3.Designer.cs +++ /dev/null @@ -1,5401 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230810081159_20230810-3")] - partial class _202308103 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" - }, - new - { - Id = new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("824c911a-6915-42a3-8bb2-bcb4aca93545"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "1d0093aa74814ffd982671a5ac362c52", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810081159_20230810-3.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810081159_20230810-3.cs deleted file mode 100644 index 53773e75..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810081159_20230810-3.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308103 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("96b1beec-0eef-4ae5-880b-23678addb759")); - - migrationBuilder.AddColumn( - name: "IsHaveSeData", - table: "Set_BBAC_SE_EDI", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "IsHaveEdiData", - table: "Set_BBAC_SE_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("824c911a-6915-42a3-8bb2-bcb4aca93545"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "1d0093aa74814ffd982671a5ac362c52", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("824c911a-6915-42a3-8bb2-bcb4aca93545")); - - migrationBuilder.DropColumn( - name: "IsHaveSeData", - table: "Set_BBAC_SE_EDI"); - - migrationBuilder.DropColumn( - name: "IsHaveEdiData", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("96b1beec-0eef-4ae5-880b-23678addb759"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "ebf2d34687e14358a9d63dbe3df7abd3", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230811013305_202308110001.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230811013305_202308110001.Designer.cs deleted file mode 100644 index 09a936a9..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230811013305_202308110001.Designer.cs +++ /dev/null @@ -1,5404 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230811013305_202308110001")] - partial class _202308110001 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" - }, - new - { - Id = new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("427dcb95-130f-40c7-8e7e-bf9cc2749dec"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "a20e124c6b89416ba16a2c424034dd37", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230811013305_202308110001.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230811013305_202308110001.cs deleted file mode 100644 index 4c880634..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230811013305_202308110001.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308110001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("824c911a-6915-42a3-8bb2-bcb4aca93545")); - - migrationBuilder.AddColumn( - name: "PartCode", - table: "Set_INVOICE_WAIT_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("427dcb95-130f-40c7-8e7e-bf9cc2749dec"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "a20e124c6b89416ba16a2c424034dd37", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("427dcb95-130f-40c7-8e7e-bf9cc2749dec")); - - migrationBuilder.DropColumn( - name: "PartCode", - table: "Set_INVOICE_WAIT_DETAIL"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("824c911a-6915-42a3-8bb2-bcb4aca93545"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "1d0093aa74814ffd982671a5ac362c52", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230814052555_20230814-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230814052555_20230814-1.Designer.cs deleted file mode 100644 index 8024ef03..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230814052555_20230814-1.Designer.cs +++ /dev/null @@ -1,5413 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230814052555_20230814-1")] - partial class _202308141 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" - }, - new - { - Id = new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("8b20c772-ad8d-4733-9edc-986e1c9ba15a"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "f86cd4516dc2499a9a9aa43bb053416b", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230814052555_20230814-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230814052555_20230814-1.cs deleted file mode 100644 index 0c1cd0d3..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230814052555_20230814-1.cs +++ /dev/null @@ -1,67 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308141 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("427dcb95-130f-40c7-8e7e-bf9cc2749dec")); - - migrationBuilder.AddColumn( - name: "SeId", - table: "Set_HBPO_SE_EDI", - type: "uniqueidentifier", - nullable: false, - defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); - - migrationBuilder.AddColumn( - name: "SeId", - table: "Set_BBAC_SE_EDI", - type: "uniqueidentifier", - nullable: false, - defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); - - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_BBAC_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("8b20c772-ad8d-4733-9edc-986e1c9ba15a"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "f86cd4516dc2499a9a9aa43bb053416b", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("8b20c772-ad8d-4733-9edc-986e1c9ba15a")); - - migrationBuilder.DropColumn( - name: "SeId", - table: "Set_HBPO_SE_EDI"); - - migrationBuilder.DropColumn( - name: "SeId", - table: "Set_BBAC_SE_EDI"); - - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("427dcb95-130f-40c7-8e7e-bf9cc2749dec"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "a20e124c6b89416ba16a2c424034dd37", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230814073646_20230814-2.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230814073646_20230814-2.Designer.cs deleted file mode 100644 index 128890b7..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230814073646_20230814-2.Designer.cs +++ /dev/null @@ -1,5407 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230814073646_20230814-2")] - partial class _202308142 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" - }, - new - { - Id = new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("27b08950-27f6-42ae-aeff-c7d19315b467"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "86c4ebf001bf4993a0cca2af4216ba92", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230814073646_20230814-2.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230814073646_20230814-2.cs deleted file mode 100644 index 10bd3883..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230814073646_20230814-2.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308142 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("8b20c772-ad8d-4733-9edc-986e1c9ba15a")); - - migrationBuilder.DropColumn( - name: "SeId", - table: "Set_HBPO_SE_EDI"); - - migrationBuilder.DropColumn( - name: "SeId", - table: "Set_BBAC_SE_EDI"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("27b08950-27f6-42ae-aeff-c7d19315b467"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "86c4ebf001bf4993a0cca2af4216ba92", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("27b08950-27f6-42ae-aeff-c7d19315b467")); - - migrationBuilder.AddColumn( - name: "SeId", - table: "Set_HBPO_SE_EDI", - type: "uniqueidentifier", - nullable: false, - defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); - - migrationBuilder.AddColumn( - name: "SeId", - table: "Set_BBAC_SE_EDI", - type: "uniqueidentifier", - nullable: false, - defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("8b20c772-ad8d-4733-9edc-986e1c9ba15a"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "f86cd4516dc2499a9a9aa43bb053416b", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815013824_20230815-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815013824_20230815-1.Designer.cs deleted file mode 100644 index dfc89a46..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815013824_20230815-1.Designer.cs +++ /dev/null @@ -1,5422 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230815013824_20230815-1")] - partial class _202308151 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" - }, - new - { - Id = new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("f4806a25-4884-41e5-a8d1-6039726b418a"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "56d140554b1f4a679568b60866a9750a", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815013824_20230815-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815013824_20230815-1.cs deleted file mode 100644 index 6e1ec106..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815013824_20230815-1.cs +++ /dev/null @@ -1,87 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308151 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("27b08950-27f6-42ae-aeff-c7d19315b467")); - - migrationBuilder.AddColumn( - name: "AssembleData", - table: "Set_PUB_SE_DETAIL", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "BillNum", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "CreateTime", - table: "Set_PUB_SE_DETAIL", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "CustPartCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "State", - table: "Set_PUB_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("f4806a25-4884-41e5-a8d1-6039726b418a"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "56d140554b1f4a679568b60866a9750a", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("f4806a25-4884-41e5-a8d1-6039726b418a")); - - migrationBuilder.DropColumn( - name: "AssembleData", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "BillNum", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "CreateTime", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "CustPartCode", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "State", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("27b08950-27f6-42ae-aeff-c7d19315b467"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "86c4ebf001bf4993a0cca2af4216ba92", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815023057_20230815-2.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815023057_20230815-2.Designer.cs deleted file mode 100644 index 0316450e..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815023057_20230815-2.Designer.cs +++ /dev/null @@ -1,5425 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230815023057_20230815-2")] - partial class _202308152 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Num") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" - }, - new - { - Id = new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("75ce4934-06de-4cac-a1f0-536935975b38"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "8e865c8947ea4381b1b48c3ee4d572b4", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815023057_20230815-2.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815023057_20230815-2.cs deleted file mode 100644 index 6834a7d6..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815023057_20230815-2.cs +++ /dev/null @@ -1,67 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308152 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("f4806a25-4884-41e5-a8d1-6039726b418a")); - - migrationBuilder.DropColumn( - name: "IsMaiDan", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_BBAC_SA_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_BBAC_SA", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("75ce4934-06de-4cac-a1f0-536935975b38"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "8e865c8947ea4381b1b48c3ee4d572b4", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("75ce4934-06de-4cac-a1f0-536935975b38")); - - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_BBAC_SA"); - - migrationBuilder.AddColumn( - name: "IsMaiDan", - table: "Set_BBAC_SA_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("f4806a25-4884-41e5-a8d1-6039726b418a"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "56d140554b1f4a679568b60866a9750a", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815054853_20230815-3.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815054853_20230815-3.Designer.cs deleted file mode 100644 index 6e7b996d..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815054853_20230815-3.Designer.cs +++ /dev/null @@ -1,5503 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230815054853_20230815-3")] - partial class _202308153 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" - }, - new - { - Id = new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("c085a562-1da9-4dd3-8e65-85e4518f1383"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "4b83550d90bf425493e93dcd552a0bd1", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815054853_20230815-3.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815054853_20230815-3.cs deleted file mode 100644 index a4b580af..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230815054853_20230815-3.cs +++ /dev/null @@ -1,368 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308153 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("75ce4934-06de-4cac-a1f0-536935975b38")); - - migrationBuilder.RenameColumn( - name: "Num", - table: "Set_HBPO_SE_DETAIL", - newName: "PartDesc"); - - migrationBuilder.RenameColumn( - name: "Num", - table: "Set_BBAC_SE_DETAIL", - newName: "PartDesc"); - - migrationBuilder.AlterColumn( - name: "BillTime", - table: "Set_HBPO_SE_DETAIL", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "AssembleData", - table: "Set_HBPO_SE_DETAIL", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "BillNum", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "BillType", - table: "Set_HBPO_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "CreateTime", - table: "Set_HBPO_SE_DETAIL", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "CustPartCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeliverBillType", - table: "Set_HBPO_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "DeliverSubBillType", - table: "Set_HBPO_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "Factory", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "JISNum", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ProType", - table: "Set_HBPO_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "State", - table: "Set_HBPO_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "SubBillType", - table: "Set_HBPO_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "TransType", - table: "Set_HBPO_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AlterColumn( - name: "BillTime", - table: "Set_BBAC_SE_DETAIL", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "AssembleData", - table: "Set_BBAC_SE_DETAIL", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "BillNum", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "BillType", - table: "Set_BBAC_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "CreateTime", - table: "Set_BBAC_SE_DETAIL", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "CustPartCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeliverBillType", - table: "Set_BBAC_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "DeliverSubBillType", - table: "Set_BBAC_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "Factory", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "JISNum", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ProType", - table: "Set_BBAC_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "State", - table: "Set_BBAC_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "SubBillType", - table: "Set_BBAC_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "TransType", - table: "Set_BBAC_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("c085a562-1da9-4dd3-8e65-85e4518f1383"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "4b83550d90bf425493e93dcd552a0bd1", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("c085a562-1da9-4dd3-8e65-85e4518f1383")); - - migrationBuilder.DropColumn( - name: "AssembleData", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "BillNum", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "BillType", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "CreateTime", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "CustPartCode", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeliverBillType", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeliverSubBillType", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "Factory", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "JISNum", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "ProType", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "State", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "SubBillType", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "TransType", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "AssembleData", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "BillNum", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "BillType", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "CreateTime", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "CustPartCode", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeliverBillType", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "DeliverSubBillType", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "Factory", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "JISNum", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "ProType", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "State", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "SubBillType", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "TransType", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.RenameColumn( - name: "PartDesc", - table: "Set_HBPO_SE_DETAIL", - newName: "Num"); - - migrationBuilder.RenameColumn( - name: "PartDesc", - table: "Set_BBAC_SE_DETAIL", - newName: "Num"); - - migrationBuilder.AlterColumn( - name: "BillTime", - table: "Set_HBPO_SE_DETAIL", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillTime", - table: "Set_BBAC_SE_DETAIL", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("75ce4934-06de-4cac-a1f0-536935975b38"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "8e865c8947ea4381b1b48c3ee4d572b4", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817004419_20230817-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817004419_20230817-1.Designer.cs deleted file mode 100644 index 7b927b01..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817004419_20230817-1.Designer.cs +++ /dev/null @@ -1,5512 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230817004419_20230817-1")] - partial class _202308171 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" - }, - new - { - Id = new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/10 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("9f155520-78d6-44b1-b8d4-dbdc31507b21"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "4e37e65449bf44728f7a3cf6a93d4e01", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817004419_20230817-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817004419_20230817-1.cs deleted file mode 100644 index 47ae3d17..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817004419_20230817-1.cs +++ /dev/null @@ -1,67 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308171 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("c085a562-1da9-4dd3-8e65-85e4518f1383")); - - migrationBuilder.AddColumn( - name: "UID", - table: "Set_PUB_SE_DETAIL", - type: "bigint", - nullable: false, - defaultValue: 0L); - - migrationBuilder.AddColumn( - name: "UID", - table: "Set_HBPO_SE_DETAIL", - type: "bigint", - nullable: false, - defaultValue: 0L); - - migrationBuilder.AddColumn( - name: "UID", - table: "Set_BBAC_SE_DETAIL", - type: "bigint", - nullable: false, - defaultValue: 0L); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("9f155520-78d6-44b1-b8d4-dbdc31507b21"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "4e37e65449bf44728f7a3cf6a93d4e01", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("9f155520-78d6-44b1-b8d4-dbdc31507b21")); - - migrationBuilder.DropColumn( - name: "UID", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "UID", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "UID", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("c085a562-1da9-4dd3-8e65-85e4518f1383"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "4b83550d90bf425493e93dcd552a0bd1", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817033153_20230817-2.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817033153_20230817-2.Designer.cs deleted file mode 100644 index 3ad178b7..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817033153_20230817-2.Designer.cs +++ /dev/null @@ -1,5521 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230817033153_20230817-2")] - partial class _202308172 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("514d1103-1558-4b8c-9172-6d0dd6a4eb32"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "78276bb327a64a0982919addb1cc1bcf", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817033153_20230817-2.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817033153_20230817-2.cs deleted file mode 100644 index dfab832e..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817033153_20230817-2.cs +++ /dev/null @@ -1,158 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308172 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68")); - - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68")); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("9f155520-78d6-44b1-b8d4-dbdc31507b21")); - - migrationBuilder.AddColumn( - name: "FactoryPartCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FactoryPartCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FactoryPartCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "Cron", - value: "0 0/30 * * * ? "); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "Cron", - value: "0 0/30 * * * ? "); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "Cron", - value: "0 0/30 * * * ? "); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "Cron", - value: "0 0/30 * * * ? "); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "Cron", "HeartBeat", "IsDisabled", "IsRunning", "Name", "Service" }, - values: new object[,] - { - { new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), "0 0/30 * * * ? ", null, false, false, "买单件BBAC发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" }, - { new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), "0 0/30 * * * ? ", null, false, false, "买单件HBPO发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" } - }); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("514d1103-1558-4b8c-9172-6d0dd6a4eb32"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "78276bb327a64a0982919addb1cc1bcf", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa")); - - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e")); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("514d1103-1558-4b8c-9172-6d0dd6a4eb32")); - - migrationBuilder.DropColumn( - name: "FactoryPartCode", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "FactoryPartCode", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "FactoryPartCode", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "Cron", - value: "0 0/10 * * * ? "); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "Cron", - value: "0 0/10 * * * ? "); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "Cron", - value: "0 0/10 * * * ? "); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "Cron", - value: "0 0/10 * * * ? "); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "Cron", "HeartBeat", "IsDisabled", "IsRunning", "Name", "Service" }, - values: new object[,] - { - { new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), "0 0/10 * * * ? ", null, false, false, "BBAC发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" }, - { new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), "0 0/10 * * * ? ", null, false, false, "HBPO发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" } - }); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("9f155520-78d6-44b1-b8d4-dbdc31507b21"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "4e37e65449bf44728f7a3cf6a93d4e01", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817035945_20230817-3.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817035945_20230817-3.Designer.cs deleted file mode 100644 index 59b71b00..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817035945_20230817-3.Designer.cs +++ /dev/null @@ -1,5539 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230817035945_20230817-3")] - partial class _202308173 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("9574edd9-55aa-48b6-bb63-fae78eaf5cf7"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "14dfff8fd6ae4d639ca21b8c8c950de5", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817035945_20230817-3.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817035945_20230817-3.cs deleted file mode 100644 index 42f24d19..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817035945_20230817-3.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308173 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("514d1103-1558-4b8c-9172-6d0dd6a4eb32")); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "Cron", "HeartBeat", "IsDisabled", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), "0 0/30 * * * ? ", null, false, false, "JisBBAC发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" }); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "Cron", "HeartBeat", "IsDisabled", "IsRunning", "Name", "Service" }, - values: new object[] { new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), "0 0/30 * * * ? ", null, false, false, "JisHBPO发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" }); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("9574edd9-55aa-48b6-bb63-fae78eaf5cf7"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "14dfff8fd6ae4d639ca21b8c8c950de5", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452")); - - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5")); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("9574edd9-55aa-48b6-bb63-fae78eaf5cf7")); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("514d1103-1558-4b8c-9172-6d0dd6a4eb32"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "78276bb327a64a0982919addb1cc1bcf", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817051027_20230817-4.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817051027_20230817-4.Designer.cs deleted file mode 100644 index 8832b286..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817051027_20230817-4.Designer.cs +++ /dev/null @@ -1,5542 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230817051027_20230817-4")] - partial class _202308174 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("65c2e515-7ca9-4b2e-8c16-a066175d1190"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "2ccdf785b5c648349a36813097be6165", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817051027_20230817-4.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817051027_20230817-4.cs deleted file mode 100644 index 5d7989e4..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817051027_20230817-4.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308174 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("9574edd9-55aa-48b6-bb63-fae78eaf5cf7")); - - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_HBPO_SE_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("65c2e515-7ca9-4b2e-8c16-a066175d1190"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "2ccdf785b5c648349a36813097be6165", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("65c2e515-7ca9-4b2e-8c16-a066175d1190")); - - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("9574edd9-55aa-48b6-bb63-fae78eaf5cf7"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "14dfff8fd6ae4d639ca21b8c8c950de5", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817052812_202308170001.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817052812_202308170001.Designer.cs deleted file mode 100644 index f037a884..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817052812_202308170001.Designer.cs +++ /dev/null @@ -1,5548 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230817052812_202308170001")] - partial class _202308170001 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("42240e52-f4f4-4e40-b321-2bc395fde07c"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "3a0fa479f64a4e84949961ac4a8aed89", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817052812_202308170001.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817052812_202308170001.cs deleted file mode 100644 index ae259bd8..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230817052812_202308170001.cs +++ /dev/null @@ -1,67 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308170001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("9574edd9-55aa-48b6-bb63-fae78eaf5cf7")); - - migrationBuilder.AddColumn( - name: "IsMaiDan", - table: "Set_PUB_ADJ_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "IsMaiDan", - table: "Set_HBPO_ADJ_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "IsMaiDan", - table: "Set_BBAC_PD_DETAIL", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("42240e52-f4f4-4e40-b321-2bc395fde07c"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "3a0fa479f64a4e84949961ac4a8aed89", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("42240e52-f4f4-4e40-b321-2bc395fde07c")); - - migrationBuilder.DropColumn( - name: "IsMaiDan", - table: "Set_PUB_ADJ_DETAIL"); - - migrationBuilder.DropColumn( - name: "IsMaiDan", - table: "Set_HBPO_ADJ_DETAIL"); - - migrationBuilder.DropColumn( - name: "IsMaiDan", - table: "Set_BBAC_PD_DETAIL"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("9574edd9-55aa-48b6-bb63-fae78eaf5cf7"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "14dfff8fd6ae4d639ca21b8c8c950de5", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230818070358_20230818-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230818070358_20230818-1.Designer.cs deleted file mode 100644 index 1ebb9543..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230818070358_20230818-1.Designer.cs +++ /dev/null @@ -1,5521 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230818070358_20230818-1")] - partial class _202308181 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("ab6a3a74-bb4e-442c-84b5-d148f2cd99f6"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "6947bb1f686043fcb95d9db67c0ca6c8", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230818070358_20230818-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230818070358_20230818-1.cs deleted file mode 100644 index c8687eed..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230818070358_20230818-1.cs +++ /dev/null @@ -1,191 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308181 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_relationship_ErpMaterialCode", - table: "Set_relationship"); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("42240e52-f4f4-4e40-b321-2bc395fde07c")); - - migrationBuilder.DropColumn( - name: "AppraisalCategory", - table: "Set_relationship"); - - migrationBuilder.DropColumn( - name: "BranchId", - table: "Set_relationship"); - - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_relationship"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_relationship"); - - migrationBuilder.DropColumn( - name: "Enabled", - table: "Set_relationship"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_relationship"); - - migrationBuilder.DropColumn( - name: "MaterialProperty", - table: "Set_relationship"); - - migrationBuilder.DropColumn( - name: "Remark", - table: "Set_relationship"); - - migrationBuilder.DropColumn( - name: "ShipMaterailCode", - table: "Set_relationship"); - - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_relationship", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AlterColumn( - name: "BillTime", - table: "Set_PUB_SE_DETAIL", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "Service", - value: "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("ab6a3a74-bb4e-442c-84b5-d148f2cd99f6"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "6947bb1f686043fcb95d9db67c0ca6c8", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - - migrationBuilder.CreateIndex( - name: "IX_Set_relationship_ErpMaterialCode_BusinessType", - table: "Set_relationship", - columns: new[] { "ErpMaterialCode", "BusinessType" }, - unique: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_relationship_ErpMaterialCode_BusinessType", - table: "Set_relationship"); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ab6a3a74-bb4e-442c-84b5-d148f2cd99f6")); - - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_relationship"); - - migrationBuilder.AddColumn( - name: "AppraisalCategory", - table: "Set_relationship", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "BranchId", - table: "Set_relationship", - type: "uniqueidentifier", - nullable: false, - defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); - - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_relationship", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_relationship", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "Enabled", - table: "Set_relationship", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_relationship", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "MaterialProperty", - table: "Set_relationship", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Remark", - table: "Set_relationship", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ShipMaterailCode", - table: "Set_relationship", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "BillTime", - table: "Set_PUB_SE_DETAIL", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "Service", - value: "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("42240e52-f4f4-4e40-b321-2bc395fde07c"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "3a0fa479f64a4e84949961ac4a8aed89", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - - migrationBuilder.CreateIndex( - name: "IX_Set_relationship_ErpMaterialCode", - table: "Set_relationship", - column: "ErpMaterialCode", - unique: true, - filter: "IsDeleted=0"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230818073659_202308180001.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230818073659_202308180001.Designer.cs deleted file mode 100644 index 38accdeb..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230818073659_202308180001.Designer.cs +++ /dev/null @@ -1,5524 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230818073659_202308180001")] - partial class _202308180001 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("d88ebd3a-5738-4f40-8a85-a08d08bbdfea"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "fd1676c11eee4c8b98e41eb8956d04ca", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230818073659_202308180001.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230818073659_202308180001.cs deleted file mode 100644 index d82525c3..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230818073659_202308180001.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308180001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ab6a3a74-bb4e-442c-84b5-d148f2cd99f6")); - - migrationBuilder.AddColumn( - name: "InvBillNum", - table: "Set_INVOICE_NOT_SETTLE", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("d88ebd3a-5738-4f40-8a85-a08d08bbdfea"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "fd1676c11eee4c8b98e41eb8956d04ca", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("d88ebd3a-5738-4f40-8a85-a08d08bbdfea")); - - migrationBuilder.DropColumn( - name: "InvBillNum", - table: "Set_INVOICE_NOT_SETTLE"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("ab6a3a74-bb4e-442c-84b5-d148f2cd99f6"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "6947bb1f686043fcb95d9db67c0ca6c8", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230819034920_202308190002.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230819034920_202308190002.Designer.cs deleted file mode 100644 index ae778f7c..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230819034920_202308190002.Designer.cs +++ /dev/null @@ -1,5530 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230819034920_202308190002")] - partial class _202308190002 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("3fc80398-34df-4288-9ad7-37db79c80192"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "b792ebaa809446988e3a5e7887e75ecb", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230819034920_202308190002.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230819034920_202308190002.cs deleted file mode 100644 index a8f0d7e4..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230819034920_202308190002.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308190002 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("d88ebd3a-5738-4f40-8a85-a08d08bbdfea")); - - migrationBuilder.AddColumn( - name: "PoBillNum", - table: "Set_PUB_NOT_SA_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PoBillNum", - table: "Set_PUB_CAN_SA_DETAIL", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("3fc80398-34df-4288-9ad7-37db79c80192"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "b792ebaa809446988e3a5e7887e75ecb", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("3fc80398-34df-4288-9ad7-37db79c80192")); - - migrationBuilder.DropColumn( - name: "PoBillNum", - table: "Set_PUB_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "PoBillNum", - table: "Set_PUB_CAN_SA_DETAIL"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("d88ebd3a-5738-4f40-8a85-a08d08bbdfea"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "fd1676c11eee4c8b98e41eb8956d04ca", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822025542_202308120001.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822025542_202308120001.Designer.cs deleted file mode 100644 index 2c3c9e2a..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822025542_202308120001.Designer.cs +++ /dev/null @@ -1,5587 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230822025542_202308120001")] - partial class _202308120001 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("0986cf48-5c48-4d14-a7b5-77e0d5da28b9"), - BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - BillType = 1, - ConcurrencyStamp = "60e9bdd1236e478e861a8d0d950d715b", - DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - SubBillType = 0, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822025542_202308120001.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822025542_202308120001.cs deleted file mode 100644 index 7802182d..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822025542_202308120001.cs +++ /dev/null @@ -1,224 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308120001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("3fc80398-34df-4288-9ad7-37db79c80192")); - - migrationBuilder.AddColumn( - name: "ErpLoc", - table: "Set_PUB_SEC_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpLoc", - table: "Set_PUB_NOT_SA_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealPartCode", - table: "Set_PUB_NOT_SA_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpLoc", - table: "Set_PUB_CAN_SA_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealPartCode", - table: "Set_PUB_CAN_SA_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpLoc", - table: "Set_PUB_ADJ_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealPartCode", - table: "Set_PUB_ADJ_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpLoc", - table: "Set_HBPO_SEC_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpLoc", - table: "Set_HBPO_NOT_SA_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealPartCode", - table: "Set_HBPO_NOT_SA_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpLoc", - table: "Set_HBPO_CAN_SA_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealPartCode", - table: "Set_HBPO_CAN_SA_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpLoc", - table: "Set_HBPO_ADJ_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealPartCode", - table: "Set_HBPO_ADJ_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpLoc", - table: "Set_BBAC_SEC_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpLoc", - table: "Set_BBAC_NOT_SA_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealPartCode", - table: "Set_BBAC_NOT_SA_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpLoc", - table: "Set_BBAC_CAN_SA_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealPartCode", - table: "Set_BBAC_CAN_SA_DETAIL", - type: "nvarchar(50)", - nullable: true); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("0986cf48-5c48-4d14-a7b5-77e0d5da28b9"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "60e9bdd1236e478e861a8d0d950d715b", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("0986cf48-5c48-4d14-a7b5-77e0d5da28b9")); - - migrationBuilder.DropColumn( - name: "ErpLoc", - table: "Set_PUB_SEC_DETAIL"); - - migrationBuilder.DropColumn( - name: "ErpLoc", - table: "Set_PUB_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "RealPartCode", - table: "Set_PUB_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "ErpLoc", - table: "Set_PUB_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "RealPartCode", - table: "Set_PUB_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "ErpLoc", - table: "Set_PUB_ADJ_DETAIL"); - - migrationBuilder.DropColumn( - name: "RealPartCode", - table: "Set_PUB_ADJ_DETAIL"); - - migrationBuilder.DropColumn( - name: "ErpLoc", - table: "Set_HBPO_SEC_DETAIL"); - - migrationBuilder.DropColumn( - name: "ErpLoc", - table: "Set_HBPO_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "RealPartCode", - table: "Set_HBPO_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "ErpLoc", - table: "Set_HBPO_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "RealPartCode", - table: "Set_HBPO_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "ErpLoc", - table: "Set_HBPO_ADJ_DETAIL"); - - migrationBuilder.DropColumn( - name: "RealPartCode", - table: "Set_HBPO_ADJ_DETAIL"); - - migrationBuilder.DropColumn( - name: "ErpLoc", - table: "Set_BBAC_SEC_DETAIL"); - - migrationBuilder.DropColumn( - name: "ErpLoc", - table: "Set_BBAC_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "RealPartCode", - table: "Set_BBAC_NOT_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "ErpLoc", - table: "Set_BBAC_CAN_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "RealPartCode", - table: "Set_BBAC_CAN_SA_DETAIL"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("3fc80398-34df-4288-9ad7-37db79c80192"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "b792ebaa809446988e3a5e7887e75ecb", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822032309_202308230001.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822032309_202308230001.Designer.cs deleted file mode 100644 index 1c893719..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822032309_202308230001.Designer.cs +++ /dev/null @@ -1,5584 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230822032309_202308230001")] - partial class _202308230001 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BackupTime") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[BillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("daf33f05-698e-49cf-b688-9288f5e94be5"), - BillType = 1, - ConcurrencyStamp = "2232ce1052044e5db3c50a381547b2bc", - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - PartCode = "PartCode", - Qty = 0m, - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupId") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822032309_202308230001.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822032309_202308230001.cs deleted file mode 100644 index 45830535..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822032309_202308230001.cs +++ /dev/null @@ -1,200 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308230001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_VmiBalance_BillType_CodeType_PartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", - table: "Set_VmiBalance"); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("0986cf48-5c48-4d14-a7b5-77e0d5da28b9")); - - migrationBuilder.AlterColumn( - name: "SubBillType", - table: "Set_VmiLog", - type: "int", - nullable: true, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "DeliverTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "BillType", - table: "Set_VmiLog", - type: "int", - nullable: true, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "BillTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "SubBillType", - table: "Set_VmiBalance", - type: "int", - nullable: true, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "DeliverTime", - table: "Set_VmiBalance", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "BillType", - table: "Set_VmiBalance", - type: "int", - nullable: true, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "BillTime", - table: "Set_VmiBalance", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("daf33f05-698e-49cf-b688-9288f5e94be5"), null, null, 1, null, "2232ce1052044e5db3c50a381547b2bc", null, null, null, "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, null, null, "VinCode", null }); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiBalance_BillType_CodeType_PartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", - table: "Set_VmiBalance", - columns: new[] { "BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode" }, - unique: true, - filter: "[BillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_VmiBalance_BillType_CodeType_PartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", - table: "Set_VmiBalance"); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("daf33f05-698e-49cf-b688-9288f5e94be5")); - - migrationBuilder.AlterColumn( - name: "SubBillType", - table: "Set_VmiLog", - type: "int", - nullable: false, - defaultValue: 0, - oldClrType: typeof(int), - oldType: "int", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DeliverTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillType", - table: "Set_VmiLog", - type: "int", - nullable: false, - defaultValue: 0, - oldClrType: typeof(int), - oldType: "int", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SubBillType", - table: "Set_VmiBalance", - type: "int", - nullable: false, - defaultValue: 0, - oldClrType: typeof(int), - oldType: "int", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DeliverTime", - table: "Set_VmiBalance", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillType", - table: "Set_VmiBalance", - type: "int", - nullable: false, - defaultValue: 0, - oldClrType: typeof(int), - oldType: "int", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillTime", - table: "Set_VmiBalance", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("0986cf48-5c48-4d14-a7b5-77e0d5da28b9"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "60e9bdd1236e478e861a8d0d950d715b", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiBalance_BillType_CodeType_PartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", - table: "Set_VmiBalance", - columns: new[] { "BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode" }, - unique: true, - filter: "[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822072327_vmi12.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822072327_vmi12.Designer.cs deleted file mode 100644 index bb181381..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822072327_vmi12.Designer.cs +++ /dev/null @@ -1,5618 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230822072327_vmi12")] - partial class vmi12 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .ValueGeneratedOnAddOrUpdate() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("1fad01d0-8122-42d3-bb8f-5fff76230eea"), - ConcurrencyStamp = "302d775f40154c279dbf7bbd37489b46", - DeliverBillType = 1, - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - Qty = 0m, - RealPartCode = "PartCode", - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822072327_vmi12.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822072327_vmi12.cs deleted file mode 100644 index 2f353150..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230822072327_vmi12.cs +++ /dev/null @@ -1,236 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi12 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_VmiBalance_BillType_CodeType_PartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", - table: "Set_VmiBalance"); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("daf33f05-698e-49cf-b688-9288f5e94be5")); - - migrationBuilder.DropColumn( - name: "CustomerPartCode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "BackupTime", - table: "Set_VmiBalance"); - - migrationBuilder.RenameColumn( - name: "SubBillType", - table: "Set_VmiLog", - newName: "DeliverSubBillType"); - - migrationBuilder.RenameColumn( - name: "PartCode2", - table: "Set_VmiLog", - newName: "SettlementPartCode"); - - migrationBuilder.RenameColumn( - name: "PartCode", - table: "Set_VmiLog", - newName: "RealPartCode"); - - migrationBuilder.RenameColumn( - name: "GroupId", - table: "Set_VmiLog", - newName: "CustPartCode"); - - migrationBuilder.RenameColumn( - name: "DeliverTime", - table: "Set_VmiLog", - newName: "AssembleData"); - - migrationBuilder.RenameColumn( - name: "BillType", - table: "Set_VmiLog", - newName: "DeliverBillType"); - - migrationBuilder.RenameColumn( - name: "SubBillType", - table: "Set_VmiBalance", - newName: "DeliverSubBillType"); - - migrationBuilder.RenameColumn( - name: "PartCode", - table: "Set_VmiBalance", - newName: "RealPartCode"); - - migrationBuilder.RenameColumn( - name: "DeliverTime", - table: "Set_VmiBalance", - newName: "AssembleData"); - - migrationBuilder.RenameColumn( - name: "CustomerPartCode", - table: "Set_VmiBalance", - newName: "SettlementVinCode"); - - migrationBuilder.RenameColumn( - name: "BillType", - table: "Set_VmiBalance", - newName: "DeliverBillType"); - - migrationBuilder.AddColumn( - name: "CustPartCode", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsReplenished", - table: "Set_VmiBalance", - type: "bit", - nullable: true); - - migrationBuilder.AddColumn( - name: "SettlementPartCode", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.CreateTable( - name: "Set_VmiMessage", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Number = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Message = table.Column(type: "nvarchar(max)", nullable: true), - isConsumed = table.Column(type: "bit", nullable: false), - CreatedTime = table.Column(type: "datetime2", nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_VmiMessage", x => x.Id); - }); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("1fad01d0-8122-42d3-bb8f-5fff76230eea"), null, null, null, "302d775f40154c279dbf7bbd37489b46", null, null, 1, null, "ErpToLoc", null, null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiBalance_DeliverBillType_CodeType_RealPartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", - table: "Set_VmiBalance", - columns: new[] { "DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode" }, - unique: true, - filter: "[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_VmiMessage"); - - migrationBuilder.DropIndex( - name: "IX_Set_VmiBalance_DeliverBillType_CodeType_RealPartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", - table: "Set_VmiBalance"); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("1fad01d0-8122-42d3-bb8f-5fff76230eea")); - - migrationBuilder.DropColumn( - name: "CustPartCode", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "IsReplenished", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "SettlementPartCode", - table: "Set_VmiBalance"); - - migrationBuilder.RenameColumn( - name: "SettlementPartCode", - table: "Set_VmiLog", - newName: "PartCode2"); - - migrationBuilder.RenameColumn( - name: "RealPartCode", - table: "Set_VmiLog", - newName: "PartCode"); - - migrationBuilder.RenameColumn( - name: "DeliverSubBillType", - table: "Set_VmiLog", - newName: "SubBillType"); - - migrationBuilder.RenameColumn( - name: "DeliverBillType", - table: "Set_VmiLog", - newName: "BillType"); - - migrationBuilder.RenameColumn( - name: "CustPartCode", - table: "Set_VmiLog", - newName: "GroupId"); - - migrationBuilder.RenameColumn( - name: "AssembleData", - table: "Set_VmiLog", - newName: "DeliverTime"); - - migrationBuilder.RenameColumn( - name: "SettlementVinCode", - table: "Set_VmiBalance", - newName: "CustomerPartCode"); - - migrationBuilder.RenameColumn( - name: "RealPartCode", - table: "Set_VmiBalance", - newName: "PartCode"); - - migrationBuilder.RenameColumn( - name: "DeliverSubBillType", - table: "Set_VmiBalance", - newName: "SubBillType"); - - migrationBuilder.RenameColumn( - name: "DeliverBillType", - table: "Set_VmiBalance", - newName: "BillType"); - - migrationBuilder.RenameColumn( - name: "AssembleData", - table: "Set_VmiBalance", - newName: "DeliverTime"); - - migrationBuilder.AddColumn( - name: "CustomerPartCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "BackupTime", - table: "Set_VmiBalance", - type: "datetime2", - nullable: true); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("daf33f05-698e-49cf-b688-9288f5e94be5"), null, null, 1, null, "2232ce1052044e5db3c50a381547b2bc", null, null, null, "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, null, null, "VinCode", null }); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiBalance_BillType_CodeType_PartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", - table: "Set_VmiBalance", - columns: new[] { "BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode" }, - unique: true, - filter: "[BillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230823012043_vmi13.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230823012043_vmi13.Designer.cs deleted file mode 100644 index f5caecb2..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230823012043_vmi13.Designer.cs +++ /dev/null @@ -1,5739 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230823012043_vmi13")] - partial class vmi13 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "335f6624aaf94c5ba8fead27577b14cc", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "0a86eea1216549839d882d9acb0e5e03", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "同步库存", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "637639f7ef6844789186e40ea883c0b5", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - ConcurrencyStamp = "022cd0d93f234af8bb31afe5ffa94221", - Cron = "0 0/5 * * * ? *", - IsDisabled = false, - IsRunning = false, - Name = "库存事务同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - ConcurrencyStamp = "30efce301b314bc5b46511dca438048a", - Cron = "0 0/5 * * * ? *", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "53abb840e287470a8f7b641010ab2316", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "9fd0847f12d44ca0888ec5468cffe209", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "67acda8899f543e0866fd36aa29fd631", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "c25d4ff8ba1d4f4fab5ca41211d77fa3", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "1893ae6d3ffb410c9ac2bdb293cb1367", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "448d1c6b6105465b9688434d1ea931ec", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "55f5f3c94e374afcb8409decbfbd2ca0", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "25bf9614ce2c42bb90499a28d9666db3", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LastUpdate") - .HasColumnType("datetime2"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("b3183f11-1cb2-48b0-8970-aa641eb5771d"), - ConcurrencyStamp = "a7cae35c36f14f5790ff8895f394fa3c", - CreatedTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - DeliverBillType = 1, - ErpToLoc = "ErpToLoc", - LastUpdate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - OrderNum = "OrderNum", - Qty = 0m, - RealPartCode = "PartCode", - UpdatedTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSyncTask", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("LastUpdate") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSyncTask"); - - b.HasData( - new - { - Id = new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - ConcurrencyStamp = "2cebf1e28ade4a82a6becea62a0e7a64", - LastUpdate = new DateTime(2023, 8, 18, 0, 0, 0, 0, DateTimeKind.Local), - Name = "库存事务备份", - Number = "Set_VmiLog" - }, - new - { - Id = new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - ConcurrencyStamp = "245f452a0bd640c2a5fae8be9f72e806", - LastUpdate = new DateTime(2023, 8, 18, 0, 0, 0, 0, DateTimeKind.Local), - Name = "库存事务备份", - Number = "Set_VmiBalance" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230823012043_vmi13.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230823012043_vmi13.cs deleted file mode 100644 index 107c6847..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230823012043_vmi13.cs +++ /dev/null @@ -1,242 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi13 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("1fad01d0-8122-42d3-bb8f-5fff76230eea")); - - migrationBuilder.RenameColumn( - name: "Path", - table: "Set_VmiSnapshot", - newName: "Description"); - - migrationBuilder.AddColumn( - name: "End", - table: "Set_VmiSnapshot", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "Start", - table: "Set_VmiSnapshot", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "CreatedTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "UpdatedTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "CreatedTime", - table: "Set_VmiBalance", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "LastUpdate", - table: "Set_VmiBalance", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "UpdatedTime", - table: "Set_VmiBalance", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.CreateTable( - name: "Set_VmiSyncTask", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(max)", nullable: true), - LastUpdate = table.Column(type: "datetime2", nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_VmiSyncTask", x => x.Id); - }); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "9fd0847f12d44ca0888ec5468cffe209"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "c25d4ff8ba1d4f4fab5ca41211d77fa3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "67acda8899f543e0866fd36aa29fd631"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "448d1c6b6105465b9688434d1ea931ec"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "53abb840e287470a8f7b641010ab2316"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "25bf9614ce2c42bb90499a28d9666db3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "55f5f3c94e374afcb8409decbfbd2ca0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "335f6624aaf94c5ba8fead27577b14cc"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "1893ae6d3ffb410c9ac2bdb293cb1367"); - - migrationBuilder.InsertData( - table: "Set_JobItem", - columns: new[] { "Id", "ConcurrencyStamp", "Cron", "HeartBeat", "IsDisabled", "IsRunning", "Name", "Service" }, - values: new object[,] - { - { new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), "0a86eea1216549839d882d9acb0e5e03", "0 0/1 * * * ?", null, false, false, "同步库存", "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" }, - { new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), "637639f7ef6844789186e40ea883c0b5", "0 0/1 * * * ?", null, false, false, "消息监控", "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" }, - { new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), "022cd0d93f234af8bb31afe5ffa94221", "0 0/5 * * * ? *", null, false, false, "库存事务同步", "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" }, - { new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), "30efce301b314bc5b46511dca438048a", "0 0/5 * * * ? *", null, false, false, "库存余额同步", "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" } - }); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "LastUpdate", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("b3183f11-1cb2-48b0-8970-aa641eb5771d"), null, null, null, "a7cae35c36f14f5790ff8895f394fa3c", null, null, 1, null, "ErpToLoc", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); - - migrationBuilder.InsertData( - table: "Set_VmiSyncTask", - columns: new[] { "Id", "ConcurrencyStamp", "LastUpdate", "Name", "Number" }, - values: new object[,] - { - { new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), "2cebf1e28ade4a82a6becea62a0e7a64", new DateTime(2023, 8, 18, 0, 0, 0, 0, DateTimeKind.Local), "库存事务备份", "Set_VmiLog" }, - { new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), "245f452a0bd640c2a5fae8be9f72e806", new DateTime(2023, 8, 18, 0, 0, 0, 0, DateTimeKind.Local), "库存余额备份", "Set_VmiBalance" } - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_VmiSyncTask"); - - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716")); - - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31")); - - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794")); - - migrationBuilder.DeleteData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c")); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("b3183f11-1cb2-48b0-8970-aa641eb5771d")); - - migrationBuilder.DropColumn( - name: "End", - table: "Set_VmiSnapshot"); - - migrationBuilder.DropColumn( - name: "Start", - table: "Set_VmiSnapshot"); - - migrationBuilder.DropColumn( - name: "CreatedTime", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "UpdatedTime", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "CreatedTime", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "LastUpdate", - table: "Set_VmiBalance"); - - migrationBuilder.DropColumn( - name: "UpdatedTime", - table: "Set_VmiBalance"); - - migrationBuilder.RenameColumn( - name: "Description", - table: "Set_VmiSnapshot", - newName: "Path"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("1fad01d0-8122-42d3-bb8f-5fff76230eea"), null, null, null, "302d775f40154c279dbf7bbd37489b46", null, null, 1, null, "ErpToLoc", null, null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230823062342_20230823-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230823062342_20230823-1.Designer.cs deleted file mode 100644 index f00ef6f7..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230823062342_20230823-1.Designer.cs +++ /dev/null @@ -1,5743 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230823062342_20230823-1")] - partial class _202308231 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "40066948ecb841e4849cfb928b117045", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "fe58be3c510f477da0752ac73c40d681", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "同步库存", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "5b04d6f48ea64f1594b4f54a57b74637", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - ConcurrencyStamp = "613b7650456c4c97a67bcff9c90a32d0", - Cron = "0 0/5 * * * ? *", - IsDisabled = false, - IsRunning = false, - Name = "库存事务同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - ConcurrencyStamp = "79a28a9f333543219b44e10b1c50d8ef", - Cron = "0 0/5 * * * ? *", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "6a28afa95d824c11adf073841328d4d7", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "f31814e50b6f41f384278fb6f0af0998", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "2c87caef446f428da6f3f243e8d7c3f9", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "0198660d53f34e529c1b72060251e05d", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "134d1d1587d64f3abd932d6bc86d8e57", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "b4f16078aa6f43d49da98f03072c7ce9", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "9df05934dd384f12a55d4469cad4ef08", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "cfd79a067c014e8fa2123fe3d3055af5", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LastUpdate") - .HasColumnType("datetime2"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("eaaaf238-9865-4851-91d4-faa239bf6fca"), - ConcurrencyStamp = "506b3fdc042d453fb4ee16c3fc5fa518", - CreatedTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - DeliverBillType = 1, - ErpToLoc = "ErpToLoc", - LastUpdate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - OrderNum = "OrderNum", - Qty = 0m, - RealPartCode = "PartCode", - UpdatedTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSyncTask", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("LastUpdate") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSyncTask"); - - b.HasData( - new - { - Id = new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - ConcurrencyStamp = "f489e433f5f14309810179ef2498ec00", - LastUpdate = new DateTime(2023, 8, 18, 0, 0, 0, 0, DateTimeKind.Local), - Name = "库存事务备份", - Number = "Set_VmiLog" - }, - new - { - Id = new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - ConcurrencyStamp = "93224b6dfb8347348e757dd7f828d28d", - LastUpdate = new DateTime(2023, 8, 18, 0, 0, 0, 0, DateTimeKind.Local), - Name = "库存余额备份", - Number = "Set_VmiBalance" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230823062342_20230823-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230823062342_20230823-1.cs deleted file mode 100644 index 50ca58fd..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230823062342_20230823-1.cs +++ /dev/null @@ -1,255 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308231 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("b3183f11-1cb2-48b0-8970-aa641eb5771d")); - - migrationBuilder.AddColumn( - name: "Site", - table: "Set_PUB_SA", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "fe58be3c510f477da0752ac73c40d681"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "5b04d6f48ea64f1594b4f54a57b74637"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "f31814e50b6f41f384278fb6f0af0998"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "0198660d53f34e529c1b72060251e05d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "2c87caef446f428da6f3f243e8d7c3f9"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - column: "ConcurrencyStamp", - value: "613b7650456c4c97a67bcff9c90a32d0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "b4f16078aa6f43d49da98f03072c7ce9"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "6a28afa95d824c11adf073841328d4d7"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "cfd79a067c014e8fa2123fe3d3055af5"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "9df05934dd384f12a55d4469cad4ef08"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - column: "ConcurrencyStamp", - value: "79a28a9f333543219b44e10b1c50d8ef"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "40066948ecb841e4849cfb928b117045"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "134d1d1587d64f3abd932d6bc86d8e57"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "LastUpdate", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("eaaaf238-9865-4851-91d4-faa239bf6fca"), null, null, null, "506b3fdc042d453fb4ee16c3fc5fa518", null, null, 1, null, "ErpToLoc", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - column: "ConcurrencyStamp", - value: "f489e433f5f14309810179ef2498ec00"); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - columns: new[] { "ConcurrencyStamp", "Name" }, - values: new object[] { "93224b6dfb8347348e757dd7f828d28d", "库存余额备份" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("eaaaf238-9865-4851-91d4-faa239bf6fca")); - - migrationBuilder.DropColumn( - name: "Site", - table: "Set_PUB_SA"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "0a86eea1216549839d882d9acb0e5e03"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "637639f7ef6844789186e40ea883c0b5"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "9fd0847f12d44ca0888ec5468cffe209"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "c25d4ff8ba1d4f4fab5ca41211d77fa3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "67acda8899f543e0866fd36aa29fd631"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - column: "ConcurrencyStamp", - value: "022cd0d93f234af8bb31afe5ffa94221"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "448d1c6b6105465b9688434d1ea931ec"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "53abb840e287470a8f7b641010ab2316"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "25bf9614ce2c42bb90499a28d9666db3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "55f5f3c94e374afcb8409decbfbd2ca0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - column: "ConcurrencyStamp", - value: "30efce301b314bc5b46511dca438048a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "335f6624aaf94c5ba8fead27577b14cc"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "1893ae6d3ffb410c9ac2bdb293cb1367"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "LastUpdate", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("b3183f11-1cb2-48b0-8970-aa641eb5771d"), null, null, null, "a7cae35c36f14f5790ff8895f394fa3c", null, null, 1, null, "ErpToLoc", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - column: "ConcurrencyStamp", - value: "2cebf1e28ade4a82a6becea62a0e7a64"); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - columns: new[] { "ConcurrencyStamp", "Name" }, - values: new object[] { "245f452a0bd640c2a5fae8be9f72e806", "库存事务备份" }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825011303_vmi14.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825011303_vmi14.Designer.cs deleted file mode 100644 index f949e012..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825011303_vmi14.Designer.cs +++ /dev/null @@ -1,5755 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230825011303_vmi14")] - partial class vmi14 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "e25c06d5cdd34b2bbf909e8c655f94fc", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "800892b9cac64cb69669dc937238d39d", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "同步库存", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "4794bc4fa2ad409ea64cdd2404983475", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - ConcurrencyStamp = "a4c7d3ff7e3b4578bc2332f114c7a6bb", - Cron = "0 0/5 * * * ? *", - IsDisabled = false, - IsRunning = false, - Name = "库存事务同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - ConcurrencyStamp = "98dff4b93f1e4b0ba88a556ab20e7973", - Cron = "0 0/5 * * * ? *", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "4d161eb0a7154f1db4cf7dcca4ffceea", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "0efcdccaa94d4e7fb550794d50efa9ab", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "5f427300bdfd44a19eaf54fddde31db1", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "1e3131d9f8454d96b0429796010752d3", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "602c85109f6743a6949bb260b3846ca7", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "3ab808a6104c483496414711259c375b", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "742b38d034d94d4685b7f074f35cd3ce", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "9186efa28e7242bf94451f40834c2160", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LastUpdate") - .HasColumnType("datetime2"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("67c5b578-8110-4674-ac1e-c3da0814244a"), - ConcurrencyStamp = "71adabfbf9a74d35985c08ecba2dd537", - CreatedTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - DeliverBillType = 1, - ErpToLoc = "ErpToLoc", - LastUpdate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - OrderNum = "OrderNum", - Qty = 0m, - RealPartCode = "PartCode", - UpdatedTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSyncTask", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastUpdate") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSyncTask"); - - b.HasData( - new - { - Id = new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - ConcurrencyStamp = "09290251f9914e5385fbae2fa00c4734", - LastUpdate = new DateTime(2023, 8, 20, 0, 0, 0, 0, DateTimeKind.Local), - Name = "库存事务备份", - Number = "Set_VmiLog" - }, - new - { - Id = new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - ConcurrencyStamp = "cecf7d9ac9924ac99b3665395406b3af", - LastUpdate = new DateTime(2023, 8, 20, 0, 0, 0, 0, DateTimeKind.Local), - Name = "库存余额备份", - Number = "Set_VmiBalance" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.HasBaseType("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", null) - .WithOne() - .HasForeignKey("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", "Id") - .OnDelete(DeleteBehavior.ClientCascade) - .IsRequired(); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825011303_vmi14.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825011303_vmi14.cs deleted file mode 100644 index ac28b53b..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825011303_vmi14.cs +++ /dev/null @@ -1,330 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi14 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("eaaaf238-9865-4851-91d4-faa239bf6fca")); - - migrationBuilder.AlterColumn( - name: "ConcurrencyStamp", - table: "Set_VmiSyncTask", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(40)", - oldMaxLength: 40, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ConcurrencyStamp", - table: "Set_VmiMessage", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(40)", - oldMaxLength: 40, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ConcurrencyStamp", - table: "Set_VmiBalance", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(40)", - oldMaxLength: 40, - oldNullable: true); - - migrationBuilder.CreateTable( - name: "Set_VmiReplenished", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_VmiReplenished", x => x.Id); - table.ForeignKey( - name: "FK_Set_VmiReplenished_Set_VmiLog_Id", - column: x => x.Id, - principalTable: "Set_VmiLog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "800892b9cac64cb69669dc937238d39d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "4794bc4fa2ad409ea64cdd2404983475"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "0efcdccaa94d4e7fb550794d50efa9ab"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "1e3131d9f8454d96b0429796010752d3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "5f427300bdfd44a19eaf54fddde31db1"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - column: "ConcurrencyStamp", - value: "a4c7d3ff7e3b4578bc2332f114c7a6bb"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "3ab808a6104c483496414711259c375b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "4d161eb0a7154f1db4cf7dcca4ffceea"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "9186efa28e7242bf94451f40834c2160"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "742b38d034d94d4685b7f074f35cd3ce"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - column: "ConcurrencyStamp", - value: "98dff4b93f1e4b0ba88a556ab20e7973"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "e25c06d5cdd34b2bbf909e8c655f94fc"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "602c85109f6743a6949bb260b3846ca7"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "LastUpdate", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("67c5b578-8110-4674-ac1e-c3da0814244a"), null, null, null, "71adabfbf9a74d35985c08ecba2dd537", null, null, 1, null, "ErpToLoc", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - columns: new[] { "ConcurrencyStamp", "LastUpdate" }, - values: new object[] { "09290251f9914e5385fbae2fa00c4734", new DateTime(2023, 8, 20, 0, 0, 0, 0, DateTimeKind.Local) }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - columns: new[] { "ConcurrencyStamp", "LastUpdate" }, - values: new object[] { "cecf7d9ac9924ac99b3665395406b3af", new DateTime(2023, 8, 20, 0, 0, 0, 0, DateTimeKind.Local) }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_VmiReplenished"); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("67c5b578-8110-4674-ac1e-c3da0814244a")); - - migrationBuilder.AlterColumn( - name: "ConcurrencyStamp", - table: "Set_VmiSyncTask", - type: "nvarchar(40)", - maxLength: 40, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ConcurrencyStamp", - table: "Set_VmiMessage", - type: "nvarchar(40)", - maxLength: 40, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ConcurrencyStamp", - table: "Set_VmiBalance", - type: "nvarchar(40)", - maxLength: 40, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "fe58be3c510f477da0752ac73c40d681"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "5b04d6f48ea64f1594b4f54a57b74637"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "f31814e50b6f41f384278fb6f0af0998"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "0198660d53f34e529c1b72060251e05d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "2c87caef446f428da6f3f243e8d7c3f9"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - column: "ConcurrencyStamp", - value: "613b7650456c4c97a67bcff9c90a32d0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "b4f16078aa6f43d49da98f03072c7ce9"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "6a28afa95d824c11adf073841328d4d7"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "cfd79a067c014e8fa2123fe3d3055af5"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "9df05934dd384f12a55d4469cad4ef08"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - column: "ConcurrencyStamp", - value: "79a28a9f333543219b44e10b1c50d8ef"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "40066948ecb841e4849cfb928b117045"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "134d1d1587d64f3abd932d6bc86d8e57"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "LastUpdate", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("eaaaf238-9865-4851-91d4-faa239bf6fca"), null, null, null, "506b3fdc042d453fb4ee16c3fc5fa518", null, null, 1, null, "ErpToLoc", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - columns: new[] { "ConcurrencyStamp", "LastUpdate" }, - values: new object[] { "f489e433f5f14309810179ef2498ec00", new DateTime(2023, 8, 18, 0, 0, 0, 0, DateTimeKind.Local) }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - columns: new[] { "ConcurrencyStamp", "LastUpdate" }, - values: new object[] { "93224b6dfb8347348e757dd7f828d28d", new DateTime(2023, 8, 18, 0, 0, 0, 0, DateTimeKind.Local) }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825061422_vmi15.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825061422_vmi15.Designer.cs deleted file mode 100644 index 89ae3719..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825061422_vmi15.Designer.cs +++ /dev/null @@ -1,5686 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230825061422_vmi15")] - partial class vmi15 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "e2266fce0ce94b9082a705bb6528b36c", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "4e46d864aae4482e8881952792c6825d", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "同步库存", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "ed9901e7e6e9410586a3af9111d2bb59", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - ConcurrencyStamp = "1c2bfef188904011b6aca9ed6af49f44", - Cron = "0 0/5 * * * ? *", - IsDisabled = false, - IsRunning = false, - Name = "库存事务同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - ConcurrencyStamp = "8069a183435141cfa0398fe295ec652c", - Cron = "0 0/5 * * * ? *", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "c8069ed240614eb4a9872d260d8839b8", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "964f6aa5b6304936a93f8504f317c82e", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "82ac7a04c0fe4c2992bd99c8a6e73be7", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "79faaa6f20934b64942a91a524a87af3", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "54450a20639f479887d74e798aa0f00b", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "cc3b71fcf18245349951c249c5b56e86", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "5c56e915398d4e8d92644d811a98c5df", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "c273b5a9dcbd4fc4ba7d33f6ef464ed7", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LastUpdate") - .HasColumnType("datetime2"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("9053e8f6-6f09-42ba-9502-2e7a2f9105c3"), - ConcurrencyStamp = "82e1f152724a4a9882aab30e6cc337cb", - CreatedTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - DeliverBillType = 1, - ErpToLoc = "ErpToLoc", - LastUpdate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - OrderNum = "OrderNum", - Qty = 0m, - RealPartCode = "PartCode", - UpdatedTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSyncTask", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastUpdate") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSyncTask"); - - b.HasData( - new - { - Id = new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - ConcurrencyStamp = "ed9c903f9b4146aeb682f9e60ebff821", - LastUpdate = new DateTime(2023, 8, 20, 0, 0, 0, 0, DateTimeKind.Local), - Name = "库存事务备份", - Number = "Set_VmiLog" - }, - new - { - Id = new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - ConcurrencyStamp = "b84bb2ea7bf040368718c5d9063144bf", - LastUpdate = new DateTime(2023, 8, 20, 0, 0, 0, 0, DateTimeKind.Local), - Name = "库存余额备份", - Number = "Set_VmiBalance" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasBaseType("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("LogType") - .HasColumnType("int"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.HasBaseType("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", null) - .WithOne() - .HasForeignKey("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", "Id") - .OnDelete(DeleteBehavior.ClientCascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", null) - .WithOne() - .HasForeignKey("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", "Id") - .OnDelete(DeleteBehavior.ClientCascade) - .IsRequired(); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825061422_vmi15.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825061422_vmi15.cs deleted file mode 100644 index 36a8520d..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825061422_vmi15.cs +++ /dev/null @@ -1,499 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi15 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("67c5b578-8110-4674-ac1e-c3da0814244a")); - - migrationBuilder.DropColumn( - name: "AssembleData", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "BillTime", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "CodeType", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "Configcode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "CreatedTime", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "CustPartCode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "DeliverBillType", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "DeliverSubBillType", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "ErpToLoc", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "IsReplenished", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "MatchNumber", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "OrderNum", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "PjsNum", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "Qty", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "ReMark", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "RealCode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "RealPartCode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "Seq", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "SettlementPartCode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "SettlementVinCode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "UniqueCode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "UpdatedTime", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "VinCode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "factory", - table: "Set_VmiLog"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "4e46d864aae4482e8881952792c6825d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "ed9901e7e6e9410586a3af9111d2bb59"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "964f6aa5b6304936a93f8504f317c82e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "79faaa6f20934b64942a91a524a87af3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "82ac7a04c0fe4c2992bd99c8a6e73be7"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - column: "ConcurrencyStamp", - value: "1c2bfef188904011b6aca9ed6af49f44"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "cc3b71fcf18245349951c249c5b56e86"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "c8069ed240614eb4a9872d260d8839b8"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "c273b5a9dcbd4fc4ba7d33f6ef464ed7"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "5c56e915398d4e8d92644d811a98c5df"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - column: "ConcurrencyStamp", - value: "8069a183435141cfa0398fe295ec652c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "e2266fce0ce94b9082a705bb6528b36c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "54450a20639f479887d74e798aa0f00b"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "LastUpdate", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("9053e8f6-6f09-42ba-9502-2e7a2f9105c3"), null, null, null, "82e1f152724a4a9882aab30e6cc337cb", null, null, 1, null, "ErpToLoc", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - column: "ConcurrencyStamp", - value: "ed9c903f9b4146aeb682f9e60ebff821"); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - column: "ConcurrencyStamp", - value: "b84bb2ea7bf040368718c5d9063144bf"); - - migrationBuilder.AddForeignKey( - name: "FK_Set_VmiLog_Set_VmiBalance_Id", - table: "Set_VmiLog", - column: "Id", - principalTable: "Set_VmiBalance", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Set_VmiLog_Set_VmiBalance_Id", - table: "Set_VmiLog"); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("9053e8f6-6f09-42ba-9502-2e7a2f9105c3")); - - migrationBuilder.AddColumn( - name: "AssembleData", - table: "Set_VmiLog", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "BillTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "CodeType", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Configcode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "CreatedTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "CustPartCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeliverBillType", - table: "Set_VmiLog", - type: "int", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeliverSubBillType", - table: "Set_VmiLog", - type: "int", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpToLoc", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsReplenished", - table: "Set_VmiLog", - type: "bit", - nullable: true); - - migrationBuilder.AddColumn( - name: "MatchNumber", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OrderNum", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PjsNum", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Qty", - table: "Set_VmiLog", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "ReMark", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealPartCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Seq", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SettlementPartCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SettlementVinCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "UniqueCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "UpdatedTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "VinCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "factory", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "800892b9cac64cb69669dc937238d39d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "4794bc4fa2ad409ea64cdd2404983475"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "0efcdccaa94d4e7fb550794d50efa9ab"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "1e3131d9f8454d96b0429796010752d3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "5f427300bdfd44a19eaf54fddde31db1"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - column: "ConcurrencyStamp", - value: "a4c7d3ff7e3b4578bc2332f114c7a6bb"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "3ab808a6104c483496414711259c375b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "4d161eb0a7154f1db4cf7dcca4ffceea"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "9186efa28e7242bf94451f40834c2160"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "742b38d034d94d4685b7f074f35cd3ce"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - column: "ConcurrencyStamp", - value: "98dff4b93f1e4b0ba88a556ab20e7973"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "e25c06d5cdd34b2bbf909e8c655f94fc"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "602c85109f6743a6949bb260b3846ca7"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "LastUpdate", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("67c5b578-8110-4674-ac1e-c3da0814244a"), null, null, null, "71adabfbf9a74d35985c08ecba2dd537", null, null, 1, null, "ErpToLoc", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - column: "ConcurrencyStamp", - value: "09290251f9914e5385fbae2fa00c4734"); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - column: "ConcurrencyStamp", - value: "cecf7d9ac9924ac99b3665395406b3af"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825063729_vmi16.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825063729_vmi16.Designer.cs deleted file mode 100644 index 42b35e79..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825063729_vmi16.Designer.cs +++ /dev/null @@ -1,5842 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230825063729_vmi16")] - partial class vmi16 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "87fd77d7f0e04c4da372a75168619afc", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "cda3828abfa24e43a7ff9dced0aceaeb", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "同步库存", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "ebb669926c1d4ab988edfe14269e4b20", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - ConcurrencyStamp = "12581a5c89da4c8587f2696f8b02ce62", - Cron = "0 0/5 * * * ? *", - IsDisabled = false, - IsRunning = false, - Name = "库存事务同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - ConcurrencyStamp = "cedf8a69b6474171b18c5fe227b78d26", - Cron = "0 0/5 * * * ? *", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "15d1504855924d95abde0dc835de555d", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "03159d6b06554bf99cfbbb15d476e386", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "b22b285ec9aa48c8b7ed2aa1f9dd7af6", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "73e9bf92fae34390a12c393f6ed8d163", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "6cdaca1650424494980e906bb44eab0f", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "456fe904f19a46349489730351148e28", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "11cf3dd1955c4da29aa430ed0b9bafdb", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "f5d16790a44b4367aeeec82ab1a35fd4", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("f12dd04d-4189-4f24-9501-038a2846b84a"), - ConcurrencyStamp = "1200fe51a7b84cfda12141b184958098", - CreatedTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - DeliverBillType = 1, - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - Qty = 0m, - RealPartCode = "PartCode", - UpdatedTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSyncTask", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastUpdate") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSyncTask"); - - b.HasData( - new - { - Id = new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - ConcurrencyStamp = "b301dcf7075a41768ced27af9a124f2f", - LastUpdate = new DateTime(2023, 8, 20, 0, 0, 0, 0, DateTimeKind.Local), - Name = "库存事务备份", - Number = "Set_VmiLog" - }, - new - { - Id = new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - ConcurrencyStamp = "1606b33f2487461fb72fb38851576947", - LastUpdate = new DateTime(2023, 8, 20, 0, 0, 0, 0, DateTimeKind.Local), - Name = "库存余额备份", - Number = "Set_VmiBalance" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825063729_vmi16.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825063729_vmi16.cs deleted file mode 100644 index c9dc5183..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825063729_vmi16.cs +++ /dev/null @@ -1,849 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi16 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Set_VmiLog_Set_VmiBalance_Id", - table: "Set_VmiLog"); - - migrationBuilder.DropForeignKey( - name: "FK_Set_VmiReplenished_Set_VmiLog_Id", - table: "Set_VmiReplenished"); - - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("9053e8f6-6f09-42ba-9502-2e7a2f9105c3")); - - migrationBuilder.DropColumn( - name: "LastUpdate", - table: "Set_VmiBalance"); - - migrationBuilder.AddColumn( - name: "AssembleData", - table: "Set_VmiReplenished", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "BillTime", - table: "Set_VmiReplenished", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "ChangedBy", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ChangedNumber", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ChangedQty", - table: "Set_VmiReplenished", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "ChangedTime", - table: "Set_VmiReplenished", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "ChangedType", - table: "Set_VmiReplenished", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "CodeType", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ConcurrencyStamp", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Configcode", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "CreatedTime", - table: "Set_VmiReplenished", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "CustPartCode", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeliverBillType", - table: "Set_VmiReplenished", - type: "int", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeliverSubBillType", - table: "Set_VmiReplenished", - type: "int", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpToLoc", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsReplenished", - table: "Set_VmiReplenished", - type: "bit", - nullable: true); - - migrationBuilder.AddColumn( - name: "LogType", - table: "Set_VmiReplenished", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "MatchNumber", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OrderNum", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PjsNum", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Qty", - table: "Set_VmiReplenished", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "ReMark", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealCode", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealPartCode", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Seq", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SettlementPartCode", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SettlementVinCode", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "UniqueCode", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "UpdatedTime", - table: "Set_VmiReplenished", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "VinCode", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "factory", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "AssembleData", - table: "Set_VmiLog", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "BillTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "CodeType", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ConcurrencyStamp", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Configcode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "CreatedTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "CustPartCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeliverBillType", - table: "Set_VmiLog", - type: "int", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeliverSubBillType", - table: "Set_VmiLog", - type: "int", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpToLoc", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsReplenished", - table: "Set_VmiLog", - type: "bit", - nullable: true); - - migrationBuilder.AddColumn( - name: "MatchNumber", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OrderNum", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PjsNum", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Qty", - table: "Set_VmiLog", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "ReMark", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RealPartCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Seq", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SettlementPartCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SettlementVinCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "UniqueCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "UpdatedTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "VinCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "factory", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "cda3828abfa24e43a7ff9dced0aceaeb"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "ebb669926c1d4ab988edfe14269e4b20"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "03159d6b06554bf99cfbbb15d476e386"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "73e9bf92fae34390a12c393f6ed8d163"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "b22b285ec9aa48c8b7ed2aa1f9dd7af6"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - column: "ConcurrencyStamp", - value: "12581a5c89da4c8587f2696f8b02ce62"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "456fe904f19a46349489730351148e28"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "15d1504855924d95abde0dc835de555d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "f5d16790a44b4367aeeec82ab1a35fd4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "11cf3dd1955c4da29aa430ed0b9bafdb"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - column: "ConcurrencyStamp", - value: "cedf8a69b6474171b18c5fe227b78d26"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "87fd77d7f0e04c4da372a75168619afc"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "6cdaca1650424494980e906bb44eab0f"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("f12dd04d-4189-4f24-9501-038a2846b84a"), null, null, null, "1200fe51a7b84cfda12141b184958098", null, null, 1, null, "ErpToLoc", null, null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - column: "ConcurrencyStamp", - value: "b301dcf7075a41768ced27af9a124f2f"); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - column: "ConcurrencyStamp", - value: "1606b33f2487461fb72fb38851576947"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("f12dd04d-4189-4f24-9501-038a2846b84a")); - - migrationBuilder.DropColumn( - name: "AssembleData", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "BillTime", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "ChangedBy", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "ChangedNumber", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "ChangedQty", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "ChangedTime", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "ChangedType", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "CodeType", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "ConcurrencyStamp", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "Configcode", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "CreatedTime", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "CustPartCode", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "DeliverBillType", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "DeliverSubBillType", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "ErpToLoc", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "IsReplenished", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "LogType", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "MatchNumber", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "OrderNum", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "PjsNum", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "Qty", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "ReMark", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "RealCode", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "RealPartCode", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "Seq", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "SettlementPartCode", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "SettlementVinCode", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "UniqueCode", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "UpdatedTime", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "VinCode", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "factory", - table: "Set_VmiReplenished"); - - migrationBuilder.DropColumn( - name: "AssembleData", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "BillTime", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "CodeType", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "ConcurrencyStamp", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "Configcode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "CreatedTime", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "CustPartCode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "DeliverBillType", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "DeliverSubBillType", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "ErpToLoc", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "IsReplenished", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "MatchNumber", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "OrderNum", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "PjsNum", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "Qty", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "ReMark", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "RealCode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "RealPartCode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "Seq", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "SettlementPartCode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "SettlementVinCode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "UniqueCode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "UpdatedTime", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "VinCode", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "factory", - table: "Set_VmiLog"); - - migrationBuilder.AddColumn( - name: "LastUpdate", - table: "Set_VmiBalance", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "4e46d864aae4482e8881952792c6825d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "ed9901e7e6e9410586a3af9111d2bb59"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "964f6aa5b6304936a93f8504f317c82e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "79faaa6f20934b64942a91a524a87af3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "82ac7a04c0fe4c2992bd99c8a6e73be7"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - column: "ConcurrencyStamp", - value: "1c2bfef188904011b6aca9ed6af49f44"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "cc3b71fcf18245349951c249c5b56e86"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "c8069ed240614eb4a9872d260d8839b8"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "c273b5a9dcbd4fc4ba7d33f6ef464ed7"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "5c56e915398d4e8d92644d811a98c5df"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - column: "ConcurrencyStamp", - value: "8069a183435141cfa0398fe295ec652c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "e2266fce0ce94b9082a705bb6528b36c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "54450a20639f479887d74e798aa0f00b"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "LastUpdate", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("9053e8f6-6f09-42ba-9502-2e7a2f9105c3"), null, null, null, "82e1f152724a4a9882aab30e6cc337cb", null, null, 1, null, "ErpToLoc", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - column: "ConcurrencyStamp", - value: "ed9c903f9b4146aeb682f9e60ebff821"); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - column: "ConcurrencyStamp", - value: "b84bb2ea7bf040368718c5d9063144bf"); - - migrationBuilder.AddForeignKey( - name: "FK_Set_VmiLog_Set_VmiBalance_Id", - table: "Set_VmiLog", - column: "Id", - principalTable: "Set_VmiBalance", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - - migrationBuilder.AddForeignKey( - name: "FK_Set_VmiReplenished_Set_VmiLog_Id", - table: "Set_VmiReplenished", - column: "Id", - principalTable: "Set_VmiLog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825071603_20230825-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825071603_20230825-1.Designer.cs deleted file mode 100644 index e89c4e4f..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825071603_20230825-1.Designer.cs +++ /dev/null @@ -1,5866 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230825071603_20230825-1")] - partial class _202308251 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "f8789477c42b476485bd7499b5facce4", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "d6ba8aa579b04d55a23bd4bf24e6ed9f", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "同步库存", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "72a5ae8256104547b6d5a41323c3ad84", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - ConcurrencyStamp = "5bdbe6b8c451462983e460c4adcab0f1", - Cron = "0 0/5 * * * ? *", - IsDisabled = false, - IsRunning = false, - Name = "库存事务同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - ConcurrencyStamp = "b612ac27de904ec5b5fb5371cf427566", - Cron = "0 0/5 * * * ? *", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "8f8d688a37e54d84aeca023750200e2f", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "03f4d0ab46de4dfa88a918fe2b3c48fa", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "76e8e365e9ff48e1953f3b14e7e01fe7", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "143f0e0bf5b6446aafe7964aab5fcb1a", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "1b569f48046046b2b908b1a3b327f104", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "955009a9778e4cd1b2dfde2aabebabfd", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "9ed27ee117aa41a681a8cdbfb30b2f25", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "041fcaa8b49347edb5b46fde3ab1032d", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("73ceebb1-5b80-48b1-ac38-80334d1f345f"), - ConcurrencyStamp = "bfe48a54e65e4856bd2e768456026105", - CreatedTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - DeliverBillType = 1, - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - Qty = 0m, - RealPartCode = "PartCode", - UpdatedTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSyncTask", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastUpdate") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSyncTask"); - - b.HasData( - new - { - Id = new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - ConcurrencyStamp = "25685f349c47487f874b9ac5dc039190", - LastUpdate = new DateTime(2023, 8, 20, 0, 0, 0, 0, DateTimeKind.Local), - Name = "库存事务备份", - Number = "Set_VmiLog" - }, - new - { - Id = new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - ConcurrencyStamp = "2debe020ac9d4f37b62a52ff564577c2", - LastUpdate = new DateTime(2023, 8, 20, 0, 0, 0, 0, DateTimeKind.Local), - Name = "库存余额备份", - Number = "Set_VmiBalance" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825071603_20230825-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825071603_20230825-1.cs deleted file mode 100644 index 364cc751..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230825071603_20230825-1.cs +++ /dev/null @@ -1,310 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308251 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("f12dd04d-4189-4f24-9501-038a2846b84a")); - - migrationBuilder.AddColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(100)", - maxLength: 100, - nullable: true); - - migrationBuilder.AddColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_PUB_SA_DETAIL", - type: "nvarchar(100)", - maxLength: 100, - nullable: true); - - migrationBuilder.AddColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(100)", - maxLength: 100, - nullable: true); - - migrationBuilder.AddColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_HBPO_SA_DETAIL", - type: "nvarchar(100)", - maxLength: 100, - nullable: true); - - migrationBuilder.AddColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(100)", - maxLength: 100, - nullable: true); - - migrationBuilder.AddColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_BBAC_SA_DETAIL", - type: "nvarchar(100)", - maxLength: 100, - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "d6ba8aa579b04d55a23bd4bf24e6ed9f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "72a5ae8256104547b6d5a41323c3ad84"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "03f4d0ab46de4dfa88a918fe2b3c48fa"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "143f0e0bf5b6446aafe7964aab5fcb1a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "76e8e365e9ff48e1953f3b14e7e01fe7"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - column: "ConcurrencyStamp", - value: "5bdbe6b8c451462983e460c4adcab0f1"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "955009a9778e4cd1b2dfde2aabebabfd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "8f8d688a37e54d84aeca023750200e2f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "041fcaa8b49347edb5b46fde3ab1032d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "9ed27ee117aa41a681a8cdbfb30b2f25"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - column: "ConcurrencyStamp", - value: "b612ac27de904ec5b5fb5371cf427566"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "f8789477c42b476485bd7499b5facce4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "1b569f48046046b2b908b1a3b327f104"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("73ceebb1-5b80-48b1-ac38-80334d1f345f"), null, null, null, "bfe48a54e65e4856bd2e768456026105", null, null, 1, null, "ErpToLoc", null, null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - column: "ConcurrencyStamp", - value: "25685f349c47487f874b9ac5dc039190"); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - column: "ConcurrencyStamp", - value: "2debe020ac9d4f37b62a52ff564577c2"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("73ceebb1-5b80-48b1-ac38-80334d1f345f")); - - migrationBuilder.DropColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_PUB_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_PUB_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_HBPO_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "cda3828abfa24e43a7ff9dced0aceaeb"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "ebb669926c1d4ab988edfe14269e4b20"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "03159d6b06554bf99cfbbb15d476e386"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "73e9bf92fae34390a12c393f6ed8d163"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "b22b285ec9aa48c8b7ed2aa1f9dd7af6"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - column: "ConcurrencyStamp", - value: "12581a5c89da4c8587f2696f8b02ce62"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "456fe904f19a46349489730351148e28"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "15d1504855924d95abde0dc835de555d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "f5d16790a44b4367aeeec82ab1a35fd4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "11cf3dd1955c4da29aa430ed0b9bafdb"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - column: "ConcurrencyStamp", - value: "cedf8a69b6474171b18c5fe227b78d26"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "87fd77d7f0e04c4da372a75168619afc"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "6cdaca1650424494980e906bb44eab0f"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("f12dd04d-4189-4f24-9501-038a2846b84a"), null, null, null, "1200fe51a7b84cfda12141b184958098", null, null, 1, null, "ErpToLoc", null, null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - column: "ConcurrencyStamp", - value: "b301dcf7075a41768ced27af9a124f2f"); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - column: "ConcurrencyStamp", - value: "1606b33f2487461fb72fb38851576947"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230826031830_202308260001.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230826031830_202308260001.Designer.cs deleted file mode 100644 index a0773438..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230826031830_202308260001.Designer.cs +++ /dev/null @@ -1,5872 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230826031830_202308260001")] - partial class _202308260001 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "e4d1118466e248f191622adc929aeb17", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "ea72feb706ee4647a389e8fa8885c789", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "同步库存", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "b09158cf21844c3ca0d32eb88b66dd92", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - ConcurrencyStamp = "2739ba9d71ab408980244325809e9e9a", - Cron = "0 0/5 * * * ? *", - IsDisabled = false, - IsRunning = false, - Name = "库存事务同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - ConcurrencyStamp = "c49deeb577c64166995401304b6fe4ed", - Cron = "0 0/5 * * * ? *", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "f7db288e33ed47d08f954e941331aee7", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "72d392c6f7b14b89acc0fd36fb630fe2", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "1b2cb1de8a7d43f988d6cb9fdcca9cd6", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "2dca7aa23ae248dcb1069d943b21c99d", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "ca648394d41f47398bba108ae78f1885", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "99974c684112426983af9c18dfdcee50", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "4959265709d743a78b7a2572fba9232d", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "10ad1bd82b5a47b3b98ebdffc8874523", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("7c7efc94-540d-4c03-881d-fd5d8abc4053"), - ConcurrencyStamp = "092e0bfc20844efaa204f71f892c8fab", - CreatedTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - DeliverBillType = 1, - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - Qty = 0m, - RealPartCode = "PartCode", - UpdatedTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSyncTask", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastUpdate") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSyncTask"); - - b.HasData( - new - { - Id = new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - ConcurrencyStamp = "11ae67087bac4f65b468ed17d54a63cb", - LastUpdate = new DateTime(2023, 8, 21, 0, 0, 0, 0, DateTimeKind.Local), - Name = "库存事务备份", - Number = "Set_VmiLog" - }, - new - { - Id = new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - ConcurrencyStamp = "1c1cb00d94ef4408896ab14bf4e5045d", - LastUpdate = new DateTime(2023, 8, 21, 0, 0, 0, 0, DateTimeKind.Local), - Name = "库存余额备份", - Number = "Set_VmiBalance" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230826031830_202308260001.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230826031830_202308260001.cs deleted file mode 100644 index 5ab50462..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230826031830_202308260001.cs +++ /dev/null @@ -1,266 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308260001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("73ceebb1-5b80-48b1-ac38-80334d1f345f")); - - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_HBPO_PD_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "BusinessType", - table: "Set_BBAC_PD_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "ea72feb706ee4647a389e8fa8885c789"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "b09158cf21844c3ca0d32eb88b66dd92"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "72d392c6f7b14b89acc0fd36fb630fe2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "2dca7aa23ae248dcb1069d943b21c99d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "1b2cb1de8a7d43f988d6cb9fdcca9cd6"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - column: "ConcurrencyStamp", - value: "2739ba9d71ab408980244325809e9e9a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "99974c684112426983af9c18dfdcee50"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "f7db288e33ed47d08f954e941331aee7"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "10ad1bd82b5a47b3b98ebdffc8874523"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "4959265709d743a78b7a2572fba9232d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - column: "ConcurrencyStamp", - value: "c49deeb577c64166995401304b6fe4ed"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "e4d1118466e248f191622adc929aeb17"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "ca648394d41f47398bba108ae78f1885"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("7c7efc94-540d-4c03-881d-fd5d8abc4053"), null, null, null, "092e0bfc20844efaa204f71f892c8fab", null, null, 1, null, "ErpToLoc", null, null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - columns: new[] { "ConcurrencyStamp", "LastUpdate" }, - values: new object[] { "11ae67087bac4f65b468ed17d54a63cb", new DateTime(2023, 8, 21, 0, 0, 0, 0, DateTimeKind.Local) }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - columns: new[] { "ConcurrencyStamp", "LastUpdate" }, - values: new object[] { "1c1cb00d94ef4408896ab14bf4e5045d", new DateTime(2023, 8, 21, 0, 0, 0, 0, DateTimeKind.Local) }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("7c7efc94-540d-4c03-881d-fd5d8abc4053")); - - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_HBPO_PD_DETAIL"); - - migrationBuilder.DropColumn( - name: "BusinessType", - table: "Set_BBAC_PD_DETAIL"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "d6ba8aa579b04d55a23bd4bf24e6ed9f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "72a5ae8256104547b6d5a41323c3ad84"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "03f4d0ab46de4dfa88a918fe2b3c48fa"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "143f0e0bf5b6446aafe7964aab5fcb1a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "76e8e365e9ff48e1953f3b14e7e01fe7"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - column: "ConcurrencyStamp", - value: "5bdbe6b8c451462983e460c4adcab0f1"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "955009a9778e4cd1b2dfde2aabebabfd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "8f8d688a37e54d84aeca023750200e2f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "041fcaa8b49347edb5b46fde3ab1032d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "9ed27ee117aa41a681a8cdbfb30b2f25"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - column: "ConcurrencyStamp", - value: "b612ac27de904ec5b5fb5371cf427566"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "f8789477c42b476485bd7499b5facce4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "1b569f48046046b2b908b1a3b327f104"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("73ceebb1-5b80-48b1-ac38-80334d1f345f"), null, null, null, "bfe48a54e65e4856bd2e768456026105", null, null, 1, null, "ErpToLoc", null, null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - columns: new[] { "ConcurrencyStamp", "LastUpdate" }, - values: new object[] { "25685f349c47487f874b9ac5dc039190", new DateTime(2023, 8, 20, 0, 0, 0, 0, DateTimeKind.Local) }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - columns: new[] { "ConcurrencyStamp", "LastUpdate" }, - values: new object[] { "2debe020ac9d4f37b62a52ff564577c2", new DateTime(2023, 8, 20, 0, 0, 0, 0, DateTimeKind.Local) }); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230826032802_vmi17.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230826032802_vmi17.Designer.cs deleted file mode 100644 index a152b8de..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230826032802_vmi17.Designer.cs +++ /dev/null @@ -1,5878 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230826032802_vmi17")] - partial class vmi17 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "3ed217e9603d4496bdef3a001ab0ebec", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "81072f462eba41b9914f4d4aea716611", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "同步库存", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "ed944c8844f24f12b7dde63809c8efb4", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - ConcurrencyStamp = "7e294c644f7946db8b942f19392c4776", - Cron = "0 0/5 * * * ? *", - IsDisabled = false, - IsRunning = false, - Name = "库存事务同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - ConcurrencyStamp = "da5ea88f24154621ab2f8d9359cfa895", - Cron = "0 0/5 * * * ? *", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "6c6d5badb49649a2a18d3decb6284fce", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "6ff457ddc814405c9c517c0554d8fa7d", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "b1285c03732a43fd87da115020b75c23", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "7622bd2d62f54b079835ce7a62bf95fe", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "4b3d04cc418647a99b64f9f52a100a87", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "8c945bdfee354e9c88563c30b9396674", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "f25821caa51d4bbf95187d3fdd95ce74", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "24f4ab4ebe854c7184e77ae0150e9659", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - - b.HasData( - new - { - Id = new Guid("ba5e008b-7d8e-4b5f-b404-9a57092fab41"), - ConcurrencyStamp = "ebb6e4f20f8c42e1862802982fd5331f", - CreatedTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - DeliverBillType = 1, - ErpToLoc = "ErpToLoc", - OrderNum = "OrderNum", - Qty = 0m, - RealPartCode = "PartCode", - UpdatedTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - VinCode = "VinCode" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSyncTask", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastUpdate") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSyncTask"); - - b.HasData( - new - { - Id = new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - ConcurrencyStamp = "a3393ee4620443ac9a692157914f162e", - LastUpdate = new DateTime(2023, 8, 21, 0, 0, 0, 0, DateTimeKind.Local), - Name = "库存事务备份", - Number = "Set_VmiLog" - }, - new - { - Id = new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - ConcurrencyStamp = "b4ffe8f9e39f466a948d4f642593d0e9", - LastUpdate = new DateTime(2023, 8, 21, 0, 0, 0, 0, DateTimeKind.Local), - Name = "库存余额备份", - Number = "Set_VmiBalance" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230826032802_vmi17.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230826032802_vmi17.cs deleted file mode 100644 index a56cc053..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230826032802_vmi17.cs +++ /dev/null @@ -1,244 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi17 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("62c9abbe-3e75-4a36-97c2-a1c79b12cb71")); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "81072f462eba41b9914f4d4aea716611"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "ed944c8844f24f12b7dde63809c8efb4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "6ff457ddc814405c9c517c0554d8fa7d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "7622bd2d62f54b079835ce7a62bf95fe"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "b1285c03732a43fd87da115020b75c23"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - column: "ConcurrencyStamp", - value: "7e294c644f7946db8b942f19392c4776"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "8c945bdfee354e9c88563c30b9396674"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "6c6d5badb49649a2a18d3decb6284fce"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "24f4ab4ebe854c7184e77ae0150e9659"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "f25821caa51d4bbf95187d3fdd95ce74"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - column: "ConcurrencyStamp", - value: "da5ea88f24154621ab2f8d9359cfa895"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "3ed217e9603d4496bdef3a001ab0ebec"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "4b3d04cc418647a99b64f9f52a100a87"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("ba5e008b-7d8e-4b5f-b404-9a57092fab41"), null, null, null, "ebb6e4f20f8c42e1862802982fd5331f", null, null, 1, null, "ErpToLoc", null, null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - column: "ConcurrencyStamp", - value: "a3393ee4620443ac9a692157914f162e"); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - column: "ConcurrencyStamp", - value: "b4ffe8f9e39f466a948d4f642593d0e9"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Set_VmiBalance", - keyColumn: "Id", - keyValue: new Guid("ba5e008b-7d8e-4b5f-b404-9a57092fab41")); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "2b23cc91f7b644438c0b08c4f9d98631"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "d5f388e6b037457a9a349ef7ea7fe874"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "4cd0917761d94e3bb8b205f2fb301d24"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "ded2be7458fd4676a1da41e939dc9a56"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "2b7aa628be2f42d4b4557f3c08f72c55"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), - column: "ConcurrencyStamp", - value: "48432a8073a240edabb4c22381d8210b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "1551b0d4dbc24650940c58b623a8fedf"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "0e63d5f40d4b42efb3267a255de0a1e3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "70e357aceffa4b27978c032592f9fbea"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "8b77ab73bdcb4cd99fd17b2c6ca1f4e4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), - column: "ConcurrencyStamp", - value: "5316e6a5c7c14b8faed431425365d50f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "a43e7f480d8246359911073011b1d887"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "fa15c26a401940448b73baabc415a648"); - - migrationBuilder.InsertData( - table: "Set_VmiBalance", - columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, - values: new object[] { new Guid("62c9abbe-3e75-4a36-97c2-a1c79b12cb71"), null, null, null, "b83b1353556f4cc9a22c6450f588f4e2", null, null, 1, null, "ErpToLoc", null, null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), - column: "ConcurrencyStamp", - value: "0a22a0a47b6c4be481074a951c8c426c"); - - migrationBuilder.UpdateData( - table: "Set_VmiSyncTask", - keyColumn: "Id", - keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), - column: "ConcurrencyStamp", - value: "bad5183ed55c41e0b74d00013067855d"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828060854_20230828.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828060854_20230828.Designer.cs deleted file mode 100644 index 0162b8bb..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828060854_20230828.Designer.cs +++ /dev/null @@ -1,5806 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230828060854_20230828")] - partial class _20230828 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "6e7a483ccf0e41e888beffb1e492f57e", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "b6452a12f9814a2ba8097b0a34934cf1", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "同步结算库存", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "e84ff12fed794e3d8eb0d8b6945873ce", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "673b92ac1f384632b35953a8601e92f2", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "f4063fd5bc9a4321941edf1663633d73", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "f21a6c7a50a5405aaced44507dbdd01b", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "565a6be9ca2a450aae2dc98b972a32bc", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "b493f376395d40c7ad727a14ec909ee0", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "df201f57bc0448d3909942c81a553597", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "6a1b56ecc53e4c56b036daab195d3a86", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "0f62e911f48d4c97a534eab3a6b2ddbd", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828060854_20230828.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828060854_20230828.cs deleted file mode 100644 index dec0e50a..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828060854_20230828.cs +++ /dev/null @@ -1,178 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _20230828 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "LineStationCode", - table: "Set_BBAC_SE_EDI", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "b6452a12f9814a2ba8097b0a34934cf1"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "e84ff12fed794e3d8eb0d8b6945873ce"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "f4063fd5bc9a4321941edf1663633d73"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "565a6be9ca2a450aae2dc98b972a32bc"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "f21a6c7a50a5405aaced44507dbdd01b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "df201f57bc0448d3909942c81a553597"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "673b92ac1f384632b35953a8601e92f2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "0f62e911f48d4c97a534eab3a6b2ddbd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "6a1b56ecc53e4c56b036daab195d3a86"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "6e7a483ccf0e41e888beffb1e492f57e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "b493f376395d40c7ad727a14ec909ee0"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "LineStationCode", - table: "Set_BBAC_SE_EDI"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "89413f316dbf4647954b6669de927488"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "ebb73d81d23c4ed9a6ae59730d163f4b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "e581ee4de97a46b1a1c0ba75a101c064"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "a7be915b8a5541c58081c668219edfb7"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "1fb801f3cbff422082d888ee8b5dab64"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "df723d768280494e88d49734cc6e55e5"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "93962cebd40f490b9df08b215b2c7bd2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "1c542463eb8746db949bcda48eabdbd8"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "c5b29d7fa18e4b9cb8bc1e354d10c3ac"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "25ec0d7c647f42d88882c4187af74201"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "7bbeaa02b39947c089eda7f4b05babb9"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828074927_vmi18.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828074927_vmi18.Designer.cs deleted file mode 100644 index cd8299a6..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828074927_vmi18.Designer.cs +++ /dev/null @@ -1,5812 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230828074927_vmi18")] - partial class vmi18 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "894bdd1d59cf4a3192d3a5d9a743b7ea", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "53ae466323824168bcb3cfbb7690bf07", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "同步结算库存", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "5f2e16e5b3ec4e8289be386e1ee02a8e", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "87a03d84519644d390b8588932fe5df2", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "cd646b7951d1416280aa91e4eba0bdcd", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "c4ed2f64b0ae4faebfce741f32e24b50", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "cdfe54ee987a4f0693ef60530817cb5c", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "3818b146b26542e197e47ecef3a3dc5e", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "b40af7f8fbcf4597b2cc2179cffecf86", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "fb3db63b74744f1482b0e66505d582e0", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "866a884f080542aeb6c028d1ca3b5323", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828074927_vmi18.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828074927_vmi18.cs deleted file mode 100644 index 19fe6022..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828074927_vmi18.cs +++ /dev/null @@ -1,258 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi18 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "UpdatedTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - defaultValueSql: "getdate()", - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "CreatedTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - defaultValueSql: "getdate()", - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "ChangedTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - defaultValueSql: "getdate()", - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "UpdatedTime", - table: "Set_VmiBalance", - type: "datetime2", - nullable: false, - defaultValueSql: "getdate()", - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "CreatedTime", - table: "Set_VmiBalance", - type: "datetime2", - nullable: false, - defaultValueSql: "getdate()", - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "53ae466323824168bcb3cfbb7690bf07"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "5f2e16e5b3ec4e8289be386e1ee02a8e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "cd646b7951d1416280aa91e4eba0bdcd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "cdfe54ee987a4f0693ef60530817cb5c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "c4ed2f64b0ae4faebfce741f32e24b50"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "b40af7f8fbcf4597b2cc2179cffecf86"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "87a03d84519644d390b8588932fe5df2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "866a884f080542aeb6c028d1ca3b5323"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "fb3db63b74744f1482b0e66505d582e0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "894bdd1d59cf4a3192d3a5d9a743b7ea"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "3818b146b26542e197e47ecef3a3dc5e"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "UpdatedTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldDefaultValueSql: "getdate()"); - - migrationBuilder.AlterColumn( - name: "CreatedTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldDefaultValueSql: "getdate()"); - - migrationBuilder.AlterColumn( - name: "ChangedTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldDefaultValueSql: "getdate()"); - - migrationBuilder.AlterColumn( - name: "UpdatedTime", - table: "Set_VmiBalance", - type: "datetime2", - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldDefaultValueSql: "getdate()"); - - migrationBuilder.AlterColumn( - name: "CreatedTime", - table: "Set_VmiBalance", - type: "datetime2", - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldDefaultValueSql: "getdate()"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "b6452a12f9814a2ba8097b0a34934cf1"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "e84ff12fed794e3d8eb0d8b6945873ce"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "f4063fd5bc9a4321941edf1663633d73"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "565a6be9ca2a450aae2dc98b972a32bc"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "f21a6c7a50a5405aaced44507dbdd01b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "df201f57bc0448d3909942c81a553597"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "673b92ac1f384632b35953a8601e92f2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "0f62e911f48d4c97a534eab3a6b2ddbd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "6a1b56ecc53e4c56b036daab195d3a86"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "6e7a483ccf0e41e888beffb1e492f57e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "b493f376395d40c7ad727a14ec909ee0"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828092102_20230828-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828092102_20230828-1.Designer.cs deleted file mode 100644 index 6b9173df..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828092102_20230828-1.Designer.cs +++ /dev/null @@ -1,5813 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230828092102_20230828-1")] - partial class _202308281 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "9c5c15ca0ef84bd69f3e35687321e68e", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "7171dfa8ed7a468697f49f779675204b", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "同步结算库存", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "550dcdec5fb44b65a235deaef4be5be5", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "e4e1563e8ab544c59f8055555cc05a8c", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "c2ec841c8d8848afa92f5a8b503c28c0", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "1211352da8754a31a50d0a30ec3c8481", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "8c21427a3b514dca9dc26f393a3109cf", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "cc5d77c9310846688906b64a5800d17c", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "37d450957fb54e37be9a792d3a98f558", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "610e0efedca34af8bf1ddd9f869ff9fd", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "39199c157f4d4e319ed0cbfd863fc937", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828092102_20230828-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828092102_20230828-1.cs deleted file mode 100644 index d824a831..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230828092102_20230828-1.cs +++ /dev/null @@ -1,188 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308281 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "LineStationCode", - table: "Set_BBAC_SE_EDI", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "7171dfa8ed7a468697f49f779675204b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "550dcdec5fb44b65a235deaef4be5be5"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "c2ec841c8d8848afa92f5a8b503c28c0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "8c21427a3b514dca9dc26f393a3109cf"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "1211352da8754a31a50d0a30ec3c8481"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "37d450957fb54e37be9a792d3a98f558"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "e4e1563e8ab544c59f8055555cc05a8c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "39199c157f4d4e319ed0cbfd863fc937"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "610e0efedca34af8bf1ddd9f869ff9fd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "9c5c15ca0ef84bd69f3e35687321e68e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "cc5d77c9310846688906b64a5800d17c"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "LineStationCode", - table: "Set_BBAC_SE_EDI", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "53ae466323824168bcb3cfbb7690bf07"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "5f2e16e5b3ec4e8289be386e1ee02a8e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "cd646b7951d1416280aa91e4eba0bdcd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "cdfe54ee987a4f0693ef60530817cb5c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "c4ed2f64b0ae4faebfce741f32e24b50"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "b40af7f8fbcf4597b2cc2179cffecf86"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "87a03d84519644d390b8588932fe5df2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "866a884f080542aeb6c028d1ca3b5323"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "fb3db63b74744f1482b0e66505d582e0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "894bdd1d59cf4a3192d3a5d9a743b7ea"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "3818b146b26542e197e47ecef3a3dc5e"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230829061958_20230829-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230829061958_20230829-1.Designer.cs deleted file mode 100644 index a943c76d..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230829061958_20230829-1.Designer.cs +++ /dev/null @@ -1,5817 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230829061958_20230829-1")] - partial class _202308291 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "466f09814b2d4da1988a382e45ce2601", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "64c6af2dbd034e919161ff37304b57b0", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "同步结算库存", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "087376a7732a4f0caec36a83389a856d", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "11992367052c4b459c68966b7fab6b13", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "e6a18e47a9d0467ba66dfb6a70ae8f80", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "51f7bc3b725847c3b3bc7f1702e775d7", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "6c08bd3ad65b4d29b613fe0a72015cc2", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "1d2d6618d5644fafaab03c543f178128", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "2a423514ae5e4c19a4524fa4b675c28e", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "ecb2819e7667499295cea61d7bf4eae3", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "6c75a4d283954fbc895242d9405340e0", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230829061958_20230829-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230829061958_20230829-1.cs deleted file mode 100644 index 6b723425..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230829061958_20230829-1.cs +++ /dev/null @@ -1,179 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308291 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "ContractDocID", - table: "Set_BBAC_SA_DETAIL", - type: "nvarchar(100)", - maxLength: 100, - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "64c6af2dbd034e919161ff37304b57b0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "087376a7732a4f0caec36a83389a856d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "e6a18e47a9d0467ba66dfb6a70ae8f80"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "6c08bd3ad65b4d29b613fe0a72015cc2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "51f7bc3b725847c3b3bc7f1702e775d7"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "2a423514ae5e4c19a4524fa4b675c28e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "11992367052c4b459c68966b7fab6b13"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "6c75a4d283954fbc895242d9405340e0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "ecb2819e7667499295cea61d7bf4eae3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "466f09814b2d4da1988a382e45ce2601"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "1d2d6618d5644fafaab03c543f178128"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ContractDocID", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "7171dfa8ed7a468697f49f779675204b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "550dcdec5fb44b65a235deaef4be5be5"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "c2ec841c8d8848afa92f5a8b503c28c0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "8c21427a3b514dca9dc26f393a3109cf"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "1211352da8754a31a50d0a30ec3c8481"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "37d450957fb54e37be9a792d3a98f558"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "e4e1563e8ab544c59f8055555cc05a8c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "39199c157f4d4e319ed0cbfd863fc937"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "610e0efedca34af8bf1ddd9f869ff9fd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "9c5c15ca0ef84bd69f3e35687321e68e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "cc5d77c9310846688906b64a5800d17c"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230829062103_202308290001.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230829062103_202308290001.Designer.cs deleted file mode 100644 index f6aff658..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230829062103_202308290001.Designer.cs +++ /dev/null @@ -1,5813 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230829062103_202308290001")] - partial class _202308290001 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "0bd67219a5564fb586a9f3be1e6126c9", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "库存快照备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "c3e3165a405d46aab69c31f2f82d756f", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "同步结算库存", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "ba68c04aac4f4416b989d7b55bdc4b7e", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "2da3b07d5f914c86bc0a43f924ed1749", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "683c8c8939e14a1395088c6e0bd05bf4", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "eb380e1324a74068abc87a93d0f7f014", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "609e5d6d97514b848dd51be85dfb9f1f", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "7c954b11c9584a2198947011c6bf2cd4", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "068e141b55ea41f3afa25065d6578ccd", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "7c5e7b3a484149e7aafa2b5fa797cf2e", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "0a1e55d5a565455898b8be3e9ae310c2", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230829062103_202308290001.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230829062103_202308290001.cs deleted file mode 100644 index 04d2cd07..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230829062103_202308290001.cs +++ /dev/null @@ -1,186 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308290001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_BBAC_SE_EDI", - type: "int", - nullable: false, - defaultValue: 0, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "c3e3165a405d46aab69c31f2f82d756f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "ba68c04aac4f4416b989d7b55bdc4b7e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "683c8c8939e14a1395088c6e0bd05bf4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "609e5d6d97514b848dd51be85dfb9f1f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "eb380e1324a74068abc87a93d0f7f014"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "068e141b55ea41f3afa25065d6578ccd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "2da3b07d5f914c86bc0a43f924ed1749"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "0a1e55d5a565455898b8be3e9ae310c2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "7c5e7b3a484149e7aafa2b5fa797cf2e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "0bd67219a5564fb586a9f3be1e6126c9"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "7c954b11c9584a2198947011c6bf2cd4"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_BBAC_SE_EDI", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "7171dfa8ed7a468697f49f779675204b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "550dcdec5fb44b65a235deaef4be5be5"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "c2ec841c8d8848afa92f5a8b503c28c0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "8c21427a3b514dca9dc26f393a3109cf"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "1211352da8754a31a50d0a30ec3c8481"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "37d450957fb54e37be9a792d3a98f558"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "e4e1563e8ab544c59f8055555cc05a8c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "39199c157f4d4e319ed0cbfd863fc937"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "610e0efedca34af8bf1ddd9f869ff9fd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "9c5c15ca0ef84bd69f3e35687321e68e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "cc5d77c9310846688906b64a5800d17c"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230831024215_vmi19.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230831024215_vmi19.Designer.cs deleted file mode 100644 index 31be9d2b..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230831024215_vmi19.Designer.cs +++ /dev/null @@ -1,5820 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230831024215_vmi19")] - partial class vmi19 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "681ede5c262642f1a02d7a67dbd83d1b", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "89ee40808b37440e89bc3e3c9c0312a7", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "b9efd317f87e4288841ddcd9fef8f6a2", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "1f52b09ccce24e3fb30c5549b19b23e4", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "862d578df0fe406995bc827f9feaae60", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "76d675a5b6d644ef8ec3358006afcb36", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "dc1523b4145f4c60a1e9543aa36da361", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "eb2e56c9379e4cb0b0f0f5f0bc8d4292", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "658f74bf334f4a34a3fb10eaf00a840a", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "71311c84551343b099c049672a4c421f", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "5ebb150f3f9e4ccd89d5fab0a6dde4e4", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230831024215_vmi19.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230831024215_vmi19.cs deleted file mode 100644 index 96730e22..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230831024215_vmi19.cs +++ /dev/null @@ -1,228 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi19 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "RealPartCode", - table: "Set_VmiReplenished", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealPartCode", - table: "Set_VmiLog", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealPartCode", - table: "Set_VmiBalance", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - //migrationBuilder.UpdateData( - // table: "Set_JobItem", - // keyColumn: "Id", - // keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - // columns: new[] { "ConcurrencyStamp", "Name" }, - // values: new object[] { "89ee40808b37440e89bc3e3c9c0312a7", "库存余额同步" }); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - columns: new[] { "ConcurrencyStamp", "Name" }, - values: new object[] { "b9efd317f87e4288841ddcd9fef8f6a2", "库存事务消息监控" }); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "862d578df0fe406995bc827f9feaae60"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "dc1523b4145f4c60a1e9543aa36da361"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "76d675a5b6d644ef8ec3358006afcb36"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "658f74bf334f4a34a3fb10eaf00a840a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "1f52b09ccce24e3fb30c5549b19b23e4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "5ebb150f3f9e4ccd89d5fab0a6dde4e4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "71311c84551343b099c049672a4c421f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - columns: new[] { "ConcurrencyStamp", "Name" }, - values: new object[] { "681ede5c262642f1a02d7a67dbd83d1b", "时点库存备份" }); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "eb2e56c9379e4cb0b0f0f5f0bc8d4292"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "RealPartCode", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealPartCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealPartCode", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - columns: new[] { "ConcurrencyStamp", "Name" }, - values: new object[] { "64c6af2dbd034e919161ff37304b57b0", "同步结算库存" }); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - columns: new[] { "ConcurrencyStamp", "Name" }, - values: new object[] { "087376a7732a4f0caec36a83389a856d", "事务消息监控" }); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "e6a18e47a9d0467ba66dfb6a70ae8f80"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "6c08bd3ad65b4d29b613fe0a72015cc2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "51f7bc3b725847c3b3bc7f1702e775d7"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "2a423514ae5e4c19a4524fa4b675c28e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "11992367052c4b459c68966b7fab6b13"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "6c75a4d283954fbc895242d9405340e0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "ecb2819e7667499295cea61d7bf4eae3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - columns: new[] { "ConcurrencyStamp", "Name" }, - values: new object[] { "466f09814b2d4da1988a382e45ce2601", "库存快照备份" }); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "1d2d6618d5644fafaab03c543f178128"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230831082843_20230831-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230831082843_20230831-1.Designer.cs deleted file mode 100644 index 81761cec..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230831082843_20230831-1.Designer.cs +++ /dev/null @@ -1,5774 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230831082843_20230831-1")] - partial class _202308311 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "42aed6aa66044a06ab92e8bf2d882cb2", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "d12f27a181f54465b338dd2401a08b6e", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "d9f3e1d0603c46479198f5baad678663", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "662702ee66444ca08ef7190b6ad1e8f3", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "20cdc48f0766480d9c7a70b390ce0f9f", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "20c50e67224d4595986559438cd975ad", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "7da7c559aba84699ae1c6c6fa0a5dc59", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "c2cbd6a620fe4fd08d3f021939d31509", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "366afac45e0e485d8f43e53346442ad2", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "7fd5fef49685400fb7254abbfd3754a1", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "8e44067496fa43c085d2cf3bc2ed8779", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillTime") - .IsClustered(); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230831082843_20230831-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230831082843_20230831-1.cs deleted file mode 100644 index e45a009c..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230831082843_20230831-1.cs +++ /dev/null @@ -1,294 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202308311 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "BranchId", - table: "Set_PriceListBJ"); - - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_PriceListBJ"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_PriceListBJ"); - - migrationBuilder.DropColumn( - name: "Enabled", - table: "Set_PriceListBJ"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_PriceListBJ"); - - migrationBuilder.DropColumn( - name: "Remark", - table: "Set_PriceListBJ"); - - migrationBuilder.DropColumn( - name: "BranchId", - table: "Set_PriceList"); - - migrationBuilder.DropColumn( - name: "DeleterId", - table: "Set_PriceList"); - - migrationBuilder.DropColumn( - name: "DeletionTime", - table: "Set_PriceList"); - - migrationBuilder.DropColumn( - name: "Enabled", - table: "Set_PriceList"); - - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "Set_PriceList"); - - migrationBuilder.DropColumn( - name: "Remark", - table: "Set_PriceList"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "d12f27a181f54465b338dd2401a08b6e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "d9f3e1d0603c46479198f5baad678663"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "20cdc48f0766480d9c7a70b390ce0f9f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "7da7c559aba84699ae1c6c6fa0a5dc59"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "20c50e67224d4595986559438cd975ad"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "366afac45e0e485d8f43e53346442ad2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "662702ee66444ca08ef7190b6ad1e8f3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "8e44067496fa43c085d2cf3bc2ed8779"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "7fd5fef49685400fb7254abbfd3754a1"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "42aed6aa66044a06ab92e8bf2d882cb2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "c2cbd6a620fe4fd08d3f021939d31509"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "BranchId", - table: "Set_PriceListBJ", - type: "uniqueidentifier", - nullable: false, - defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); - - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_PriceListBJ", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_PriceListBJ", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "Enabled", - table: "Set_PriceListBJ", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_PriceListBJ", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "Remark", - table: "Set_PriceListBJ", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "BranchId", - table: "Set_PriceList", - type: "uniqueidentifier", - nullable: false, - defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); - - migrationBuilder.AddColumn( - name: "DeleterId", - table: "Set_PriceList", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeletionTime", - table: "Set_PriceList", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "Enabled", - table: "Set_PriceList", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "Set_PriceList", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "Remark", - table: "Set_PriceList", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "89ee40808b37440e89bc3e3c9c0312a7"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "b9efd317f87e4288841ddcd9fef8f6a2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "862d578df0fe406995bc827f9feaae60"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "dc1523b4145f4c60a1e9543aa36da361"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "76d675a5b6d644ef8ec3358006afcb36"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "658f74bf334f4a34a3fb10eaf00a840a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "1f52b09ccce24e3fb30c5549b19b23e4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "5ebb150f3f9e4ccd89d5fab0a6dde4e4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "71311c84551343b099c049672a4c421f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "681ede5c262642f1a02d7a67dbd83d1b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "eb2e56c9379e4cb0b0f0f5f0bc8d4292"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230901084349_vmi20.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230901084349_vmi20.Designer.cs deleted file mode 100644 index 1a73c0e5..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230901084349_vmi20.Designer.cs +++ /dev/null @@ -1,5771 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230901084349_vmi20")] - partial class vmi20 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "0c40557cb16c4c079fa836f5337875ed", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "119eda96252e4bd58016d77b0bf1f43b", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "3bd216de9cdf423ab81dc6cf014f8616", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "1680a6235f8d40f092e576028cde752a", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "24fd0b376e354409a5bcdec267b72b2d", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "229a34c072454e7d949556e07a9f1e1f", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "7884254f65f7422da2abe11929da3f6b", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "9f16199bb6f34f14a193a7ae7fa700be", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "313eaf08e98642ec9b7531ac5e1575c9", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "45a3d39659e34ef3bee5b93bb5781412", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "0464f68915234385b952314fefffc134", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ChangedTime") - .IsClustered(); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ChangedTime") - .IsClustered(); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230901084349_vmi20.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230901084349_vmi20.cs deleted file mode 100644 index 9ee51662..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230901084349_vmi20.cs +++ /dev/null @@ -1,176 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi20 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "119eda96252e4bd58016d77b0bf1f43b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "3bd216de9cdf423ab81dc6cf014f8616"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "24fd0b376e354409a5bcdec267b72b2d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "7884254f65f7422da2abe11929da3f6b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "229a34c072454e7d949556e07a9f1e1f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "313eaf08e98642ec9b7531ac5e1575c9"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "1680a6235f8d40f092e576028cde752a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "0464f68915234385b952314fefffc134"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "45a3d39659e34ef3bee5b93bb5781412"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "0c40557cb16c4c079fa836f5337875ed"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "9f16199bb6f34f14a193a7ae7fa700be"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_VmiReplenished_ChangedTime", - table: "Set_VmiReplenished"); - - migrationBuilder.DropIndex( - name: "IX_Set_VmiLog_ChangedTime", - table: "Set_VmiLog"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "d12f27a181f54465b338dd2401a08b6e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "d9f3e1d0603c46479198f5baad678663"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "20cdc48f0766480d9c7a70b390ce0f9f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "7da7c559aba84699ae1c6c6fa0a5dc59"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "20c50e67224d4595986559438cd975ad"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "366afac45e0e485d8f43e53346442ad2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "662702ee66444ca08ef7190b6ad1e8f3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "8e44067496fa43c085d2cf3bc2ed8779"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "7fd5fef49685400fb7254abbfd3754a1"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "42aed6aa66044a06ab92e8bf2d882cb2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "c2cbd6a620fe4fd08d3f021939d31509"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230904064849_202309040005.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230904064849_202309040005.Designer.cs deleted file mode 100644 index df881456..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230904064849_202309040005.Designer.cs +++ /dev/null @@ -1,5870 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230904064849_202309040005")] - partial class _202309040005 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.TED_SA_INV", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillTo") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceDate") - .HasColumnType("datetime2"); - - b.Property("InvoiceNet") - .HasColumnType("decimal(18,2)"); - - b.Property("InvoiceNetAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("InvoiceQuatity") - .HasColumnType("decimal(18,2)"); - - b.Property("InvoiceTax") - .HasColumnType("decimal(18,2)"); - - b.Property("InvoiceTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Location") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TYPE") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("begintime") - .HasColumnType("datetime2"); - - b.Property("endtime") - .HasColumnType("datetime2"); - - b.Property("invoiceNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("sasInvoiceNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_TED_SA_INV"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "0ebe68a46be34b078560896901dd380d", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "b9e638afef8b4de097fc683516354089", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "50529732e41e474cb6d6908a8ec88099", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "2f60da6b559d48a19c1817213f1528d6", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "f25b1fe5c17a40d18e18752ce0009d65", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "c5726eb21c9445de91546c7f1c71efac", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "e91d573f386b42ae8eb6bf32a38bc483", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "28715471b0bd426292d154ae294bcaf4", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "d247508e91324e40ac5754ede500b1ac", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "10aadf01ae724c359846cf31aab2b31b", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "18ec8f18b9434fa4baaa2fcb5e24c41b", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230904064849_202309040005.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230904064849_202309040005.cs deleted file mode 100644 index 918159a8..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230904064849_202309040005.cs +++ /dev/null @@ -1,246 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202309040005 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - //migrationBuilder.DropIndex( - // name: "IX_Set_VmiReplenished_ChangedTime", - // table: "Set_VmiReplenished"); - - //migrationBuilder.DropIndex( - // name: "IX_Set_VmiLog_ChangedTime", - // table: "Set_VmiLog"); - - migrationBuilder.AlterColumn( - name: "UpdatedTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldDefaultValueSql: "getdate()"); - - migrationBuilder.CreateTable( - name: "Set_TED_SA_INV", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - invoiceNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - sasInvoiceNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Customer = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BillTo = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvoiceDate = table.Column(type: "datetime2", nullable: false), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - TYPE = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PartNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvoiceQuatity = table.Column(type: "decimal(18,2)", nullable: false), - Price = table.Column(type: "decimal(18,2)", nullable: false), - Supplier = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Remark = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvoiceNetAmount = table.Column(type: "decimal(18,2)", nullable: false), - InvoiceTaxAmount = table.Column(type: "decimal(18,2)", nullable: false), - TaxRate = table.Column(type: "decimal(18,2)", nullable: false), - Location = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvoiceNet = table.Column(type: "decimal(18,2)", nullable: false), - InvoiceTax = table.Column(type: "decimal(18,2)", nullable: false), - begintime = table.Column(type: "datetime2", nullable: false), - endtime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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_Set_TED_SA_INV", x => x.Id); - }); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "b9e638afef8b4de097fc683516354089"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "50529732e41e474cb6d6908a8ec88099"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "f25b1fe5c17a40d18e18752ce0009d65"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "e91d573f386b42ae8eb6bf32a38bc483"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "c5726eb21c9445de91546c7f1c71efac"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "d247508e91324e40ac5754ede500b1ac"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "2f60da6b559d48a19c1817213f1528d6"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "18ec8f18b9434fa4baaa2fcb5e24c41b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "10aadf01ae724c359846cf31aab2b31b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "0ebe68a46be34b078560896901dd380d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "28715471b0bd426292d154ae294bcaf4"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_TED_SA_INV"); - - migrationBuilder.AlterColumn( - name: "UpdatedTime", - table: "Set_VmiLog", - type: "datetime2", - nullable: false, - defaultValueSql: "getdate()", - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "119eda96252e4bd58016d77b0bf1f43b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "3bd216de9cdf423ab81dc6cf014f8616"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "24fd0b376e354409a5bcdec267b72b2d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "7884254f65f7422da2abe11929da3f6b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "229a34c072454e7d949556e07a9f1e1f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "313eaf08e98642ec9b7531ac5e1575c9"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "1680a6235f8d40f092e576028cde752a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "0464f68915234385b952314fefffc134"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "45a3d39659e34ef3bee5b93bb5781412"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "0c40557cb16c4c079fa836f5337875ed"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "9f16199bb6f34f14a193a7ae7fa700be"); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiReplenished_ChangedTime", - table: "Set_VmiReplenished", - column: "ChangedTime") - .Annotation("SqlServer:Clustered", true); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiLog_ChangedTime", - table: "Set_VmiLog", - column: "ChangedTime") - .Annotation("SqlServer:Clustered", true); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230906031332_202309060001.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230906031332_202309060001.Designer.cs deleted file mode 100644 index c2dbee18..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230906031332_202309060001.Designer.cs +++ /dev/null @@ -1,5771 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230906031332_202309060001")] - partial class _202309060001 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "f98cf5180c124d88a4853f8c9e1ebece", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "25540a425f78445b98a5590b3d708bcd", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "42328476bcab4eb38035d28596d5ecd9", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "dda70cc2fd7f4328be7860a550006ecb", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "7d49bd0d15124ee0b6de9f558fc9a429", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "f65d6d2f92684535a920d7f3ed75699d", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "4aea58b425a34947869fba8e92ade9f2", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "2f035dd2eca74570a85ae5276cc99e1c", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "ec6c990fce2a4728a00c488c7757c172", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "afe6ab9a36024802ba83dd3e32de0ad4", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "5e50b42897c1455597888da08f8587de", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230906031332_202309060001.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230906031332_202309060001.cs deleted file mode 100644 index 30c4119e..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230906031332_202309060001.cs +++ /dev/null @@ -1,230 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202309060001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_TED_SA_INV"); - - migrationBuilder.AddColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_HBPO_SE_EDI", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_BBAC_SE_EDI", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "25540a425f78445b98a5590b3d708bcd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "42328476bcab4eb38035d28596d5ecd9"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "7d49bd0d15124ee0b6de9f558fc9a429"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "4aea58b425a34947869fba8e92ade9f2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "f65d6d2f92684535a920d7f3ed75699d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "ec6c990fce2a4728a00c488c7757c172"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "dda70cc2fd7f4328be7860a550006ecb"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "5e50b42897c1455597888da08f8587de"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "afe6ab9a36024802ba83dd3e32de0ad4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "f98cf5180c124d88a4853f8c9e1ebece"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "2f035dd2eca74570a85ae5276cc99e1c"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_HBPO_SE_EDI"); - - migrationBuilder.DropColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_BBAC_SE_EDI"); - - migrationBuilder.CreateTable( - name: "Set_TED_SA_INV", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - BillTo = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - Customer = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - InvoiceDate = table.Column(type: "datetime2", nullable: false), - InvoiceNet = table.Column(type: "decimal(18,2)", nullable: false), - InvoiceNetAmount = table.Column(type: "decimal(18,2)", nullable: false), - InvoiceQuatity = table.Column(type: "decimal(18,2)", nullable: false), - InvoiceTax = table.Column(type: "decimal(18,2)", nullable: false), - InvoiceTaxAmount = table.Column(type: "decimal(18,2)", nullable: false), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - Location = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PartNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Price = table.Column(type: "decimal(18,2)", nullable: false), - Remark = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Site = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Supplier = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - TYPE = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - TaxRate = table.Column(type: "decimal(18,2)", nullable: false), - begintime = table.Column(type: "datetime2", nullable: false), - endtime = table.Column(type: "datetime2", nullable: false), - invoiceNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - sasInvoiceNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_TED_SA_INV", x => x.Id); - }); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "b9e638afef8b4de097fc683516354089"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "50529732e41e474cb6d6908a8ec88099"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "f25b1fe5c17a40d18e18752ce0009d65"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "e91d573f386b42ae8eb6bf32a38bc483"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "c5726eb21c9445de91546c7f1c71efac"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "d247508e91324e40ac5754ede500b1ac"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "2f60da6b559d48a19c1817213f1528d6"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "18ec8f18b9434fa4baaa2fcb5e24c41b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "10aadf01ae724c359846cf31aab2b31b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "0ebe68a46be34b078560896901dd380d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "28715471b0bd426292d154ae294bcaf4"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230907075720_20230907-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230907075720_20230907-1.Designer.cs deleted file mode 100644 index b8119175..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230907075720_20230907-1.Designer.cs +++ /dev/null @@ -1,5777 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230907075720_20230907-1")] - partial class _202309071 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "090f151b1c6e418299e23b7b2397a0cb", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "540d27f55bd9415bae51a264d888b256", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "f311bbe27f2d4dd088690d28c4dd8495", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "54a845290661424dbd6600f40a77ec27", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "a641ae00f7db4b3cbf58dc098442c08b", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "610f376ade18446f87589b9b99b16c6a", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "fc2fa51cd9124e2593e457241b79bc2b", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "dcd7451cfe3d4472b8eca39f7e890038", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "272db8024ec645dc837afb433687572f", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "9072cbd6edd74b80821d92e9d98d8d61", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "8c5c164e5abc471a97ec8dada4195a53", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230907075720_20230907-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230907075720_20230907-1.cs deleted file mode 100644 index 967c23da..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230907075720_20230907-1.cs +++ /dev/null @@ -1,190 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202309071 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "IsCancel", - table: "Set_PriceListBJ", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "IsCancel", - table: "Set_PriceList", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "540d27f55bd9415bae51a264d888b256"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "f311bbe27f2d4dd088690d28c4dd8495"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "a641ae00f7db4b3cbf58dc098442c08b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "fc2fa51cd9124e2593e457241b79bc2b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "610f376ade18446f87589b9b99b16c6a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "272db8024ec645dc837afb433687572f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "54a845290661424dbd6600f40a77ec27"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "8c5c164e5abc471a97ec8dada4195a53"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "9072cbd6edd74b80821d92e9d98d8d61"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "090f151b1c6e418299e23b7b2397a0cb"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "dcd7451cfe3d4472b8eca39f7e890038"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "IsCancel", - table: "Set_PriceListBJ"); - - migrationBuilder.DropColumn( - name: "IsCancel", - table: "Set_PriceList"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "25540a425f78445b98a5590b3d708bcd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "42328476bcab4eb38035d28596d5ecd9"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "7d49bd0d15124ee0b6de9f558fc9a429"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "4aea58b425a34947869fba8e92ade9f2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "f65d6d2f92684535a920d7f3ed75699d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "ec6c990fce2a4728a00c488c7757c172"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "dda70cc2fd7f4328be7860a550006ecb"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "5e50b42897c1455597888da08f8587de"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "afe6ab9a36024802ba83dd3e32de0ad4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "f98cf5180c124d88a4853f8c9e1ebece"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "2f035dd2eca74570a85ae5276cc99e1c"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230908031607_20230908-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230908031607_20230908-1.Designer.cs deleted file mode 100644 index 166753f2..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230908031607_20230908-1.Designer.cs +++ /dev/null @@ -1,5781 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230908031607_20230908-1")] - partial class _202309081 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "be930d1502d742a8ae7d784c1a05ff60", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "47fe18e0c4174614b1fcf60db5a35627", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "7ef18156df8f444b97ea9c14d54dbd42", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "02504a27952b462b8e294ff5886cb884", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "12c345ad1a5146f993350fef54c3c6a7", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "0add991c7b55439d831a4df9d8073ea2", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "015197fa7217489f87d3f2aa90b88c9f", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "e32d05eeb3ba41148010a47c05753298", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "81771ab92b504c57bf3e240e41174522", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "ac058682bcfd43a4922543012c542b0c", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "4962eff9d1874befaef668e046480d92", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230908031607_20230908-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230908031607_20230908-1.cs deleted file mode 100644 index f5e535c3..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230908031607_20230908-1.cs +++ /dev/null @@ -1,179 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202309081 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "LineStationCode", - table: "Set_HBPO_SE_EDI", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "47fe18e0c4174614b1fcf60db5a35627"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "7ef18156df8f444b97ea9c14d54dbd42"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "12c345ad1a5146f993350fef54c3c6a7"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "015197fa7217489f87d3f2aa90b88c9f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "0add991c7b55439d831a4df9d8073ea2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "81771ab92b504c57bf3e240e41174522"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "02504a27952b462b8e294ff5886cb884"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "4962eff9d1874befaef668e046480d92"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "ac058682bcfd43a4922543012c542b0c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "be930d1502d742a8ae7d784c1a05ff60"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "e32d05eeb3ba41148010a47c05753298"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "LineStationCode", - table: "Set_HBPO_SE_EDI"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "540d27f55bd9415bae51a264d888b256"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "f311bbe27f2d4dd088690d28c4dd8495"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "a641ae00f7db4b3cbf58dc098442c08b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "fc2fa51cd9124e2593e457241b79bc2b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "610f376ade18446f87589b9b99b16c6a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "272db8024ec645dc837afb433687572f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "54a845290661424dbd6600f40a77ec27"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "8c5c164e5abc471a97ec8dada4195a53"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "9072cbd6edd74b80821d92e9d98d8d61"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "090f151b1c6e418299e23b7b2397a0cb"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "dcd7451cfe3d4472b8eca39f7e890038"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230908053049_20230908-2.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230908053049_20230908-2.Designer.cs deleted file mode 100644 index a8344fff..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230908053049_20230908-2.Designer.cs +++ /dev/null @@ -1,5790 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230908053049_20230908-2")] - partial class _202309082 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "024d5742d21c41e4b63052f4e03f15f8", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "1aefd0b8d1ab49458c36e3932717ab35", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "6b33d7dda3f645dcbe8b4a3f51a7399f", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "f54dc633986d4eba9ce0793f450545c0", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "22c0f3b78cf8410392dbaf098eecc973", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "9475ae5b030a480b81c539f9eeabd7d5", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "25d4d2fdf5e6403188ccd684459a6a47", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "ff08e4cbf0c0461d8426470f9b84bf62", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "cdd7dba0132b488aa38becaebc9725eb", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "c63da47e046c4d8cbe927a450388df2f", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "d3521bfcefe94a38962bd1b7d72ed219", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230908053049_20230908-2.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230908053049_20230908-2.cs deleted file mode 100644 index 8f0fce47..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230908053049_20230908-2.cs +++ /dev/null @@ -1,201 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202309082 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "MappingType", - table: "Set_PUB_SA_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "MappingType", - table: "Set_HBPO_SA_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "MappingType", - table: "Set_BBAC_SA_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "1aefd0b8d1ab49458c36e3932717ab35"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "6b33d7dda3f645dcbe8b4a3f51a7399f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "22c0f3b78cf8410392dbaf098eecc973"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "25d4d2fdf5e6403188ccd684459a6a47"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "9475ae5b030a480b81c539f9eeabd7d5"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "cdd7dba0132b488aa38becaebc9725eb"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "f54dc633986d4eba9ce0793f450545c0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "d3521bfcefe94a38962bd1b7d72ed219"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "c63da47e046c4d8cbe927a450388df2f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "024d5742d21c41e4b63052f4e03f15f8"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "ff08e4cbf0c0461d8426470f9b84bf62"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "MappingType", - table: "Set_PUB_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "MappingType", - table: "Set_HBPO_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "MappingType", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "47fe18e0c4174614b1fcf60db5a35627"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "7ef18156df8f444b97ea9c14d54dbd42"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "12c345ad1a5146f993350fef54c3c6a7"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "015197fa7217489f87d3f2aa90b88c9f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "0add991c7b55439d831a4df9d8073ea2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "81771ab92b504c57bf3e240e41174522"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "02504a27952b462b8e294ff5886cb884"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "4962eff9d1874befaef668e046480d92"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "ac058682bcfd43a4922543012c542b0c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "be930d1502d742a8ae7d784c1a05ff60"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "e32d05eeb3ba41148010a47c05753298"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230909013408_202309090001.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230909013408_202309090001.Designer.cs deleted file mode 100644 index 6b2827d6..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230909013408_202309090001.Designer.cs +++ /dev/null @@ -1,5793 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230909013408_202309090001")] - partial class _202309090001 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "18add54a57684dd1818440f0d5005ebb", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "dece69c1928241df9f38feccf47d0c0a", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "431db509a1f34bfe9fd1a4d7efcf1d4c", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "de291b54ac7e487988bb2660050b0db4", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "06df83918cbc4543a2b44a83f739dc67", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "960ce38962e949558923f71d04f4e338", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "9004a8ecf43a4fe1848f6802a6d4576f", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "03899f76c20043e896f38246ccb0d037", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "f9c840d4749b410982c3288ce64a8691", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "e5bf812fc44e445991f4a7b6ece063db", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "3ec6e8d3979a41088508d5ec64f5118a", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230909013408_202309090001.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230909013408_202309090001.cs deleted file mode 100644 index c85d1a6b..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230909013408_202309090001.cs +++ /dev/null @@ -1,178 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202309090001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Site", - table: "Set_INVOICE_GRP", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "dece69c1928241df9f38feccf47d0c0a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "431db509a1f34bfe9fd1a4d7efcf1d4c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "06df83918cbc4543a2b44a83f739dc67"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "9004a8ecf43a4fe1848f6802a6d4576f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "960ce38962e949558923f71d04f4e338"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "f9c840d4749b410982c3288ce64a8691"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "de291b54ac7e487988bb2660050b0db4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "3ec6e8d3979a41088508d5ec64f5118a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "e5bf812fc44e445991f4a7b6ece063db"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "18add54a57684dd1818440f0d5005ebb"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "03899f76c20043e896f38246ccb0d037"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Site", - table: "Set_INVOICE_GRP"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "1aefd0b8d1ab49458c36e3932717ab35"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "6b33d7dda3f645dcbe8b4a3f51a7399f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "22c0f3b78cf8410392dbaf098eecc973"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "25d4d2fdf5e6403188ccd684459a6a47"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "9475ae5b030a480b81c539f9eeabd7d5"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "cdd7dba0132b488aa38becaebc9725eb"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "f54dc633986d4eba9ce0793f450545c0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "d3521bfcefe94a38962bd1b7d72ed219"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "c63da47e046c4d8cbe927a450388df2f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "024d5742d21c41e4b63052f4e03f15f8"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "ff08e4cbf0c0461d8426470f9b84bf62"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230913024309_20230913-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230913024309_20230913-1.Designer.cs deleted file mode 100644 index abb45c15..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230913024309_20230913-1.Designer.cs +++ /dev/null @@ -1,5802 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230913024309_20230913-1")] - partial class _202309131 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "0227468d6ab64b9c86ed33e7feaf88ae", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "99884a6a7033490bbc93b2ffcf1212fe", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "d6b499590a7f4d738e6d4d53cbae1419", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "a0869b3e24eb4620bd5f01db384652ac", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "708a84b07be44ee99c1e70fe0f42820e", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "787cc284e9db4280a35d2ee3d71c0822", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "b80a98f0c7154dfeb56c387e2e22c482", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "8934e9981b4041249cdeaf63ff00c468", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "32e17d97277a40b991b7f54e22668bac", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "5da31dc2347145acbc2b660c3adbb582", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "8b15dfbd04ac49f2b52a3db7d7ebe9ed", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230913024309_20230913-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230913024309_20230913-1.cs deleted file mode 100644 index 868f2c9c..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230913024309_20230913-1.cs +++ /dev/null @@ -1,201 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202309131 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "IndexNum", - table: "Set_PUB_SA_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "IndexNum", - table: "Set_HBPO_SA_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "IndexNum", - table: "Set_BBAC_SA_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "99884a6a7033490bbc93b2ffcf1212fe"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "d6b499590a7f4d738e6d4d53cbae1419"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "708a84b07be44ee99c1e70fe0f42820e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "b80a98f0c7154dfeb56c387e2e22c482"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "787cc284e9db4280a35d2ee3d71c0822"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "32e17d97277a40b991b7f54e22668bac"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "a0869b3e24eb4620bd5f01db384652ac"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "8b15dfbd04ac49f2b52a3db7d7ebe9ed"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "5da31dc2347145acbc2b660c3adbb582"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "0227468d6ab64b9c86ed33e7feaf88ae"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "8934e9981b4041249cdeaf63ff00c468"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "IndexNum", - table: "Set_PUB_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "IndexNum", - table: "Set_HBPO_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "IndexNum", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "dece69c1928241df9f38feccf47d0c0a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "431db509a1f34bfe9fd1a4d7efcf1d4c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "06df83918cbc4543a2b44a83f739dc67"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "9004a8ecf43a4fe1848f6802a6d4576f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "960ce38962e949558923f71d04f4e338"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "f9c840d4749b410982c3288ce64a8691"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "de291b54ac7e487988bb2660050b0db4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "3ec6e8d3979a41088508d5ec64f5118a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "e5bf812fc44e445991f4a7b6ece063db"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "18add54a57684dd1818440f0d5005ebb"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "03899f76c20043e896f38246ccb0d037"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230914021528_20230914-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230914021528_20230914-1.Designer.cs deleted file mode 100644 index d28f4c2a..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230914021528_20230914-1.Designer.cs +++ /dev/null @@ -1,5823 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230914021528_20230914-1")] - partial class _202309141 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "27a58b61e45c44db907e467fb594cc66", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "b1d31f0c8ba14fd5baf9e86a382cf23b", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "cb552d924aa5468c9605fc66af7f6aa2", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "9c91f78395054248aaca3cb07018d785", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "861d9091519a403e880429b4ec92bf48", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "3b34af99b803428faad0b383080a46ef", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "26fc2c469b324cd38fb3ee9c1fda720d", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "78bde67297b24c9eada8402d3f94d52b", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "2120adc593a148ba95427da1eadc2073", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "628547db204a4af09bed4562a5d4e8fd", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "9f5c2dac8b544424b22248e87f78051d", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230914021528_20230914-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230914021528_20230914-1.cs deleted file mode 100644 index 6871d3c6..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230914021528_20230914-1.cs +++ /dev/null @@ -1,243 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202309141 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Place", - table: "Set_PUB_SA_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Place", - table: "Set_PUB_SA", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Place", - table: "Set_HBPO_SA_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Site", - table: "Set_HBPO_SA", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Place", - table: "Set_HBPO_SA", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Place", - table: "Set_BBAC_SA_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "b1d31f0c8ba14fd5baf9e86a382cf23b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "cb552d924aa5468c9605fc66af7f6aa2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "861d9091519a403e880429b4ec92bf48"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "26fc2c469b324cd38fb3ee9c1fda720d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "3b34af99b803428faad0b383080a46ef"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "2120adc593a148ba95427da1eadc2073"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "9c91f78395054248aaca3cb07018d785"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "9f5c2dac8b544424b22248e87f78051d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "628547db204a4af09bed4562a5d4e8fd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "27a58b61e45c44db907e467fb594cc66"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "78bde67297b24c9eada8402d3f94d52b"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Place", - table: "Set_PUB_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "Place", - table: "Set_PUB_SA"); - - migrationBuilder.DropColumn( - name: "Place", - table: "Set_HBPO_SA_DETAIL"); - - migrationBuilder.DropColumn( - name: "Place", - table: "Set_HBPO_SA"); - - migrationBuilder.DropColumn( - name: "Place", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.AlterColumn( - name: "Site", - table: "Set_HBPO_SA", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "b3c6a359087b41e4b586c8c172efae5d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "a37556b1d5ab4bc5b0cf1c1622eefff3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "b2fdf754c09d4f3f816a378f71b76b6f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "65b4aa76401a4f1ab800dc8b1702f0b9"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "136aad88976d4bf9b58a6e3586ca9fe1"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "017827b08deb447ab5729a69e06d31dd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "289386fefb924a41afcc768204745473"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "30329237998d4b458194994a3e2229e5"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "a36bef05d3324491ac31fae24d5d622a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "8516c291b3ed4d5aba3a1a832535c4ae"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "d2500499b42341d784f5067aa91cf66d"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230915020001_20230915-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230915020001_20230915-1.Designer.cs deleted file mode 100644 index effec016..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230915020001_20230915-1.Designer.cs +++ /dev/null @@ -1,5822 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230915020001_20230915-1")] - partial class _202309151 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineCode") - .HasColumnType("int"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "b1d3eeaad1fe4f3abfaecec1d8101efa", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "4811f883bafc4103afa8d6d328d3a069", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "4ed3d65478ac4d0c8e32959f4d4d6948", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "db9e52f68d34450e87e91298093f99e6", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "e582b1ac0af543f5907bc6478f582d5d", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "6e4f423b25754f45bb941d2bd83d0d01", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "0a984af35ced4b958987c92dc8d8b437", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "ae4deb9271fa4f45b38a5eb8ecd6a9b5", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "0c087607218c4593bfe96bbf073a83bc", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "81c99bc19cf94f4c8d8643fb3ec703ac", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "61c1715c5e4b41b3874ec46b1ff6a943", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230915020001_20230915-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230915020001_20230915-1.cs deleted file mode 100644 index bd66bea3..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230915020001_20230915-1.cs +++ /dev/null @@ -1,190 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202309151 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Place", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.AddColumn( - name: "LineCode", - table: "Set_INVOICE_WAIT_DETAIL", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "4811f883bafc4103afa8d6d328d3a069"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "4ed3d65478ac4d0c8e32959f4d4d6948"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "e582b1ac0af543f5907bc6478f582d5d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "0a984af35ced4b958987c92dc8d8b437"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "6e4f423b25754f45bb941d2bd83d0d01"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "0c087607218c4593bfe96bbf073a83bc"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "db9e52f68d34450e87e91298093f99e6"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "61c1715c5e4b41b3874ec46b1ff6a943"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "81c99bc19cf94f4c8d8643fb3ec703ac"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "b1d3eeaad1fe4f3abfaecec1d8101efa"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "ae4deb9271fa4f45b38a5eb8ecd6a9b5"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "LineCode", - table: "Set_INVOICE_WAIT_DETAIL"); - - migrationBuilder.AddColumn( - name: "Place", - table: "Set_BBAC_SA_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "b1d31f0c8ba14fd5baf9e86a382cf23b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "cb552d924aa5468c9605fc66af7f6aa2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "861d9091519a403e880429b4ec92bf48"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "26fc2c469b324cd38fb3ee9c1fda720d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "3b34af99b803428faad0b383080a46ef"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "2120adc593a148ba95427da1eadc2073"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "9c91f78395054248aaca3cb07018d785"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "9f5c2dac8b544424b22248e87f78051d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "628547db204a4af09bed4562a5d4e8fd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "27a58b61e45c44db907e467fb594cc66"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "78bde67297b24c9eada8402d3f94d52b"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230915035754_202309150001.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230915035754_202309150001.Designer.cs deleted file mode 100644 index 809661ca..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230915035754_202309150001.Designer.cs +++ /dev/null @@ -1,5822 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230915035754_202309150001")] - partial class _202309150001 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineCode") - .HasColumnType("int"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "eb45100def7f4621bc511c4fb779d500", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "d58d671303b941739e1f15175d2885fa", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "11cb239191164161b43fe11f01e15ff1", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "1d37186ccfcf423b963303847322dacf", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "cad1d2b24dfa40af9cef675a1483033e", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "59396a1080ba4af7ab4d644f2db85992", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "757f9afcb2b0452e80903f64435c50e0", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "1efb2d30d2a34d929b10ad04ef3daaf9", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "8cb7e348ae5645748e52c3fd998fe792", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "69697dd7feb94adc94f47e761b14be51", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "8cfaa28a391b4092a54c3e6bc038c96e", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230915035754_202309150001.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230915035754_202309150001.cs deleted file mode 100644 index 65def444..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230915035754_202309150001.cs +++ /dev/null @@ -1,168 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202309150001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "d58d671303b941739e1f15175d2885fa"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "11cb239191164161b43fe11f01e15ff1"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "cad1d2b24dfa40af9cef675a1483033e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "757f9afcb2b0452e80903f64435c50e0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "59396a1080ba4af7ab4d644f2db85992"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "8cb7e348ae5645748e52c3fd998fe792"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "1d37186ccfcf423b963303847322dacf"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "8cfaa28a391b4092a54c3e6bc038c96e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "69697dd7feb94adc94f47e761b14be51"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "eb45100def7f4621bc511c4fb779d500"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "1efb2d30d2a34d929b10ad04ef3daaf9"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "4811f883bafc4103afa8d6d328d3a069"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "4ed3d65478ac4d0c8e32959f4d4d6948"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "e582b1ac0af543f5907bc6478f582d5d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "0a984af35ced4b958987c92dc8d8b437"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "6e4f423b25754f45bb941d2bd83d0d01"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "0c087607218c4593bfe96bbf073a83bc"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "db9e52f68d34450e87e91298093f99e6"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "61c1715c5e4b41b3874ec46b1ff6a943"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "81c99bc19cf94f4c8d8643fb3ec703ac"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "b1d3eeaad1fe4f3abfaecec1d8101efa"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "ae4deb9271fa4f45b38a5eb8ecd6a9b5"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230918060007_20230918-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230918060007_20230918-1.Designer.cs deleted file mode 100644 index 97883356..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230918060007_20230918-1.Designer.cs +++ /dev/null @@ -1,5824 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230918060007_20230918-1")] - partial class _202309181 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineCode") - .HasColumnType("int"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "92d9e39172c2463e9a06b09252533b94", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "74b5f640459d4fb4af7e663ad318a7e8", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "3741a2331a464353932a67e49726504e", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "06c84c84594341a0b7dd108a11ed4b13", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "efbcbfc8ff684d41a932181e7deec6b2", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "6e2c96f0817e47e6a70dc07633f92365", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "abfcd02d9de44e678d983d5aa842c92d", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "621689c5c9ff4ae198f99abcec3fedb9", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "626ba1e106b34594980d8d21abe54f2b", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "654ad9973c87451ca057551e0ced4822", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "0750f96fa58c4452be0f0ccd7d304953", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "SettleMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230918060007_20230918-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230918060007_20230918-1.cs deleted file mode 100644 index 3b10d446..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230918060007_20230918-1.cs +++ /dev/null @@ -1,208 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202309181 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_relationship_ErpMaterialCode_BusinessType", - table: "Set_relationship"); - - migrationBuilder.AlterColumn( - name: "SettleMaterialCode", - table: "Set_relationship", - type: "nvarchar(36)", - maxLength: 36, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "74b5f640459d4fb4af7e663ad318a7e8"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "3741a2331a464353932a67e49726504e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "efbcbfc8ff684d41a932181e7deec6b2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "abfcd02d9de44e678d983d5aa842c92d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "6e2c96f0817e47e6a70dc07633f92365"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "626ba1e106b34594980d8d21abe54f2b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "06c84c84594341a0b7dd108a11ed4b13"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "0750f96fa58c4452be0f0ccd7d304953"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "654ad9973c87451ca057551e0ced4822"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "92d9e39172c2463e9a06b09252533b94"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "621689c5c9ff4ae198f99abcec3fedb9"); - - migrationBuilder.CreateIndex( - name: "IX_Set_relationship_ErpMaterialCode_SettleMaterialCode_BusinessType", - table: "Set_relationship", - columns: new[] { "ErpMaterialCode", "SettleMaterialCode", "BusinessType" }, - unique: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_relationship_ErpMaterialCode_SettleMaterialCode_BusinessType", - table: "Set_relationship"); - - migrationBuilder.AlterColumn( - name: "SettleMaterialCode", - table: "Set_relationship", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "d58d671303b941739e1f15175d2885fa"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "11cb239191164161b43fe11f01e15ff1"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "cad1d2b24dfa40af9cef675a1483033e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "757f9afcb2b0452e80903f64435c50e0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "59396a1080ba4af7ab4d644f2db85992"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "8cb7e348ae5645748e52c3fd998fe792"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "1d37186ccfcf423b963303847322dacf"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "8cfaa28a391b4092a54c3e6bc038c96e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "69697dd7feb94adc94f47e761b14be51"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "eb45100def7f4621bc511c4fb779d500"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "1efb2d30d2a34d929b10ad04ef3daaf9"); - - migrationBuilder.CreateIndex( - name: "IX_Set_relationship_ErpMaterialCode_BusinessType", - table: "Set_relationship", - columns: new[] { "ErpMaterialCode", "BusinessType" }, - unique: true); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230919010624_20230919-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230919010624_20230919-1.Designer.cs deleted file mode 100644 index 0c6716c4..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230919010624_20230919-1.Designer.cs +++ /dev/null @@ -1,5828 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20230919010624_20230919-1")] - partial class _202309191 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("ProductionCodeType") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineCode") - .HasColumnType("int"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "7a57abf3c29d4c62af03344a83ec0e0b", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "6a9373e21c0046e898c85945682ed701", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "ccf0bc1715bb4b018f9b23159de6f116", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "888e0398751e4ceeb33dd04d2a60c5de", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "b92e0a5372a94a48ad3fbb607281ca6f", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "7fd1b85332d1410f8f5aac9f8133f6e7", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "e3b9c33400904b0ab07576195a37abcb", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "ca3c9634e73c454a81fe88127622b8db", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "6d7c4e44083641e0913905c25f6f56ba", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "3923d323cd3a40d8ab1c62119737cac8", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "e924e50c1001490b823fd36acdd81e79", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "SettleMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230919010624_20230919-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230919010624_20230919-1.cs deleted file mode 100644 index c387fbc0..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230919010624_20230919-1.cs +++ /dev/null @@ -1,179 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202309191 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "ProductionCodeType", - table: "Set_BBAC_SA_DETAIL", - type: "nvarchar(10)", - maxLength: 10, - nullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "6a9373e21c0046e898c85945682ed701"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "ccf0bc1715bb4b018f9b23159de6f116"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "b92e0a5372a94a48ad3fbb607281ca6f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "e3b9c33400904b0ab07576195a37abcb"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "7fd1b85332d1410f8f5aac9f8133f6e7"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "6d7c4e44083641e0913905c25f6f56ba"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "888e0398751e4ceeb33dd04d2a60c5de"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "e924e50c1001490b823fd36acdd81e79"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "3923d323cd3a40d8ab1c62119737cac8"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "7a57abf3c29d4c62af03344a83ec0e0b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "ca3c9634e73c454a81fe88127622b8db"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ProductionCodeType", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "74b5f640459d4fb4af7e663ad318a7e8"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "3741a2331a464353932a67e49726504e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "efbcbfc8ff684d41a932181e7deec6b2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "abfcd02d9de44e678d983d5aa842c92d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "6e2c96f0817e47e6a70dc07633f92365"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "626ba1e106b34594980d8d21abe54f2b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "06c84c84594341a0b7dd108a11ed4b13"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "0750f96fa58c4452be0f0ccd7d304953"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "654ad9973c87451ca057551e0ced4822"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "92d9e39172c2463e9a06b09252533b94"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "621689c5c9ff4ae198f99abcec3fedb9"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231011011841_20231011-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231011011841_20231011-1.Designer.cs deleted file mode 100644 index d948df3e..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231011011841_20231011-1.Designer.cs +++ /dev/null @@ -1,5906 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20231011011841_20231011-1")] - partial class _202310111 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("ProductionCodeType") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineCode") - .HasColumnType("int"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "4ce40eb18ef0488d81ba2906a4c80b0b", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "1a1e601cecf048be81c05fef8276da45", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "173befe56a454211b5e7a34055c05028", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "39237411d84b425d82b192f2d34fa311", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "ece4fb3c94d84db49b29bb7ce5403e0f", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "8df83c3b351c4501af06cb28800daf40", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "55e773e2549a4b8eb37290f10b2217de", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "facdc1ba48df49138b67cf266a4936f2", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "2f67425d15004f4fbca4ce530ba6fd78", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "e59e2f6af2c44e40b0f9b82817789e1d", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "c6ff3a457eab4058aa63aee66825624e", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListYinDu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListYinDu"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "SettleMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231011011841_20231011-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231011011841_20231011-1.cs deleted file mode 100644 index 608fcac3..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231011011841_20231011-1.cs +++ /dev/null @@ -1,201 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202310111 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_PriceListYinDu", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - LU = table.Column(type: "nvarchar(max)", nullable: true), - Price = table.Column(type: "decimal(18,2)", nullable: false), - BeginDate = table.Column(type: "datetime2", nullable: false), - EndDate = table.Column(type: "datetime2", nullable: false), - ClientCode = table.Column(type: "nvarchar(max)", nullable: true), - Date = table.Column(type: "datetime2", nullable: false), - ContractNo = table.Column(type: "nvarchar(max)", nullable: true), - IsCancel = table.Column(type: "bit", nullable: false), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Type = table.Column(type: "int", nullable: false), - ParentId = 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) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_PriceListYinDu", x => x.Id); - }); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "1a1e601cecf048be81c05fef8276da45"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "173befe56a454211b5e7a34055c05028"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "ece4fb3c94d84db49b29bb7ce5403e0f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "55e773e2549a4b8eb37290f10b2217de"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "8df83c3b351c4501af06cb28800daf40"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "2f67425d15004f4fbca4ce530ba6fd78"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "39237411d84b425d82b192f2d34fa311"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "c6ff3a457eab4058aa63aee66825624e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "e59e2f6af2c44e40b0f9b82817789e1d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "4ce40eb18ef0488d81ba2906a4c80b0b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "facdc1ba48df49138b67cf266a4936f2"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_PriceListYinDu"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "6a9373e21c0046e898c85945682ed701"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "ccf0bc1715bb4b018f9b23159de6f116"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "b92e0a5372a94a48ad3fbb607281ca6f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "e3b9c33400904b0ab07576195a37abcb"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "7fd1b85332d1410f8f5aac9f8133f6e7"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "6d7c4e44083641e0913905c25f6f56ba"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "888e0398751e4ceeb33dd04d2a60c5de"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "e924e50c1001490b823fd36acdd81e79"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "3923d323cd3a40d8ab1c62119737cac8"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "7a57abf3c29d4c62af03344a83ec0e0b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "ca3c9634e73c454a81fe88127622b8db"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231012015823_20231012-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231012015823_20231012-1.Designer.cs deleted file mode 100644 index 16a0b12c..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231012015823_20231012-1.Designer.cs +++ /dev/null @@ -1,5981 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20231012015823_20231012-1")] - partial class _202310121 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("ProductionCodeType") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineCode") - .HasColumnType("int"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.InvoiceSyncQad", 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Domain") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Failedinfo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SaslnvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaskID") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("Voucher") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSyncQad"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "1e5f1338551448eaa8ce065e77578fc4", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "325bc4e2a3074f7ab1b41ed5cfd1e8ca", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "a11a0e1af79040a5901a0f290cbb7936", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "cfa9502d5e314d70b0c1ddef91853d36", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "d6afa4a5cbd94ca08f6a7591c80d2531", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "af52a9e211b247b4accd0361198621e1", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "c2d69fd69946428bb3aaceef7d68f5b9", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "6182defa2c0b477186fa6a4de7ea7f2e", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "295cdcf125a64355afa3d5974c7d79be", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "f9bed92b9cd9469c93829cdb37784b82", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "320f864ee06b472eb196e2ad3edc412f", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListYinDu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListYinDu"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "SettleMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231012015823_20231012-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231012015823_20231012-1.cs deleted file mode 100644 index 638071ee..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231012015823_20231012-1.cs +++ /dev/null @@ -1,198 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202310121 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_InvoiceSyncQad", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TaskState = table.Column(type: "int", nullable: false), - TaskID = table.Column(type: "uniqueidentifier", nullable: false), - TaskName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Failedinfo = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Domain = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Site = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - InvoiceNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SaslnvoiceNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Customer = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Voucher = table.Column(type: "nvarchar(64)", maxLength: 64, 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_Set_InvoiceSyncQad", x => x.Id); - }); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "325bc4e2a3074f7ab1b41ed5cfd1e8ca"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "a11a0e1af79040a5901a0f290cbb7936"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "d6afa4a5cbd94ca08f6a7591c80d2531"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "c2d69fd69946428bb3aaceef7d68f5b9"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "af52a9e211b247b4accd0361198621e1"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "295cdcf125a64355afa3d5974c7d79be"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "cfa9502d5e314d70b0c1ddef91853d36"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "320f864ee06b472eb196e2ad3edc412f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "f9bed92b9cd9469c93829cdb37784b82"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "1e5f1338551448eaa8ce065e77578fc4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "6182defa2c0b477186fa6a4de7ea7f2e"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_InvoiceSyncQad"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "1a1e601cecf048be81c05fef8276da45"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "173befe56a454211b5e7a34055c05028"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "ece4fb3c94d84db49b29bb7ce5403e0f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "55e773e2549a4b8eb37290f10b2217de"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "8df83c3b351c4501af06cb28800daf40"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "2f67425d15004f4fbca4ce530ba6fd78"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "39237411d84b425d82b192f2d34fa311"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "c6ff3a457eab4058aa63aee66825624e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "e59e2f6af2c44e40b0f9b82817789e1d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "4ce40eb18ef0488d81ba2906a4c80b0b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "facdc1ba48df49138b67cf266a4936f2"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231012062406_20231012-2.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231012062406_20231012-2.Designer.cs deleted file mode 100644 index b987ce61..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231012062406_20231012-2.Designer.cs +++ /dev/null @@ -1,5981 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20231012062406_20231012-2")] - partial class _202310122 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("ProductionCodeType") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("OrigiCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RefBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("RefVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineCode") - .HasColumnType("int"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.InvoiceSyncQad", 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Domain") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailedInfo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SasInvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaskID") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("Voucher") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSyncQad"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasColumnType("nvarchar(max)"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryIndex") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromHose") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasColumnType("nvarchar(max)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToHose") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "0874f575990a494fbba5def3d498c5c4", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "fdd5f4bfee3e45f59aca17e59904f993", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "4c070988c0794e688b142f29fa9a3dc2", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "02192df2f3a54cf2bf82bea02114fb5c", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "4b00fb7915934cd59f389e1b6086f99e", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "0474eac208624e88b0dced81f5c8c02b", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "8eed581d18514bc191b6e97bf347fab3", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "1c357daa79b044d29eb40312d59510e7", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "a350bd04db4e4fd2b8baac7aad8c8f53", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "005ca6fbb184402e95fd273d4142088f", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "f26d7a21dec44400899cc71ed2f16a73", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListYinDu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListYinDu"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "SettleMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231012062406_20231012-2.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231012062406_20231012-2.cs deleted file mode 100644 index 07e0ff35..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231012062406_20231012-2.cs +++ /dev/null @@ -1,188 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202310122 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn( - name: "Failedinfo", - table: "Set_InvoiceSyncQad", - newName: "FailedInfo"); - - migrationBuilder.RenameColumn( - name: "SaslnvoiceNumber", - table: "Set_InvoiceSyncQad", - newName: "SasInvoiceNumber"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "fdd5f4bfee3e45f59aca17e59904f993"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "4c070988c0794e688b142f29fa9a3dc2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "4b00fb7915934cd59f389e1b6086f99e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "8eed581d18514bc191b6e97bf347fab3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "0474eac208624e88b0dced81f5c8c02b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "a350bd04db4e4fd2b8baac7aad8c8f53"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "02192df2f3a54cf2bf82bea02114fb5c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "f26d7a21dec44400899cc71ed2f16a73"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "005ca6fbb184402e95fd273d4142088f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "0874f575990a494fbba5def3d498c5c4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "1c357daa79b044d29eb40312d59510e7"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn( - name: "FailedInfo", - table: "Set_InvoiceSyncQad", - newName: "Failedinfo"); - - migrationBuilder.RenameColumn( - name: "SasInvoiceNumber", - table: "Set_InvoiceSyncQad", - newName: "SaslnvoiceNumber"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "325bc4e2a3074f7ab1b41ed5cfd1e8ca"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "a11a0e1af79040a5901a0f290cbb7936"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "d6afa4a5cbd94ca08f6a7591c80d2531"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "c2d69fd69946428bb3aaceef7d68f5b9"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "af52a9e211b247b4accd0361198621e1"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "295cdcf125a64355afa3d5974c7d79be"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "cfa9502d5e314d70b0c1ddef91853d36"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "320f864ee06b472eb196e2ad3edc412f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "f9bed92b9cd9469c93829cdb37784b82"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "1e5f1338551448eaa8ce065e77578fc4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "6182defa2c0b477186fa6a4de7ea7f2e"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013005156_20231013-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013005156_20231013-1.Designer.cs deleted file mode 100644 index 6f6a8dc9..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013005156_20231013-1.Designer.cs +++ /dev/null @@ -1,6078 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20231013005156_20231013-1")] - partial class _202310131 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("ProductionCodeType") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineCode") - .HasColumnType("int"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.InvoiceSyncQad", 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Domain") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailedInfo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SasInvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaskID") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("Voucher") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSyncQad"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliveryIndex") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TableName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "650fa7efb97a48a98ae99655da5f10b5", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "887aa288e05f486a9fc47cee5c16042c", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "beb2a2793d944668aa12b145a4fed0af", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "8b0dcc505f594d2fae7a011bd3c9cb0b", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "f7a92e81d64d410e92517b70198cb883", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "7ad9de79ed1942d58f8bdcf0f31a0182", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "d24e993891c84beead44c675d352d17c", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "9db06d1651824c52ac748e70d9bdd22c", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "897a0bf76eba4d298de6997ac5451ffa", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "2b4446c3583e4503b39f7b62d6f35701", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "72bea3403a0a4ca5be463389628ee6fd", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListYinDu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListYinDu"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettleMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "SettleMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013005156_20231013-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013005156_20231013-1.cs deleted file mode 100644 index e0670693..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013005156_20231013-1.cs +++ /dev/null @@ -1,2174 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202310131 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "RepLU", - table: "Set_TB_RePartsRelationship", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LU", - table: "Set_TB_RePartsRelationship", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ClientCode", - table: "Set_TB_RePartsRelationship", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TableName", - table: "Set_SyncPositionFlag", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Position", - table: "Set_SyncPositionFlag", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDesc", - table: "Set_relationship", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToHose", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToErpLocCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Oper", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromHose", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromErpLocCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FactoryPartCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DnOper", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DnBillNum", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DeliveryIndex", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DeliveryHose", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(100)", - oldMaxLength: 100, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustPartCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustId", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "Set_PUB_SA_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_PriceListYinDu", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LU", - table: "Set_PriceListYinDu", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ContractNo", - table: "Set_PriceListYinDu", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ClientCode", - table: "Set_PriceListYinDu", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_PriceListBJ", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LU", - table: "Set_PriceListBJ", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ContractNo", - table: "Set_PriceListBJ", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ClientCode", - table: "Set_PriceListBJ", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_PriceList", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LU", - table: "Set_PriceList", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ContractNo", - table: "Set_PriceList", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ClientCode", - table: "Set_PriceList", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UniqueCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLoc", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Seq", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RefVinCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RefBillNum", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealPartCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Position", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PjsNum", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartDesc", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OrigiCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OrderNum", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Oper", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MatchNumber", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MESConfigCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "JISNum", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLoc", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FactoryPartCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Factory", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ErpToLoc", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DeliverCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(100)", - oldMaxLength: 100, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustPartCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CodeType", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillCharacter", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "Set_HBPO_SA_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UniqueCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLoc", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Seq", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RefVinCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RefBillNum", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealPartCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Position", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PjsNum", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartDesc", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OrigiCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OrderNum", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Oper", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MatchNumber", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MESConfigCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "JISNum", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLoc", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FactoryPartCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Factory", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ErpToLoc", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DeliverCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(100)", - oldMaxLength: 100, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustPartCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CodeType", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillCharacter", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "Set_BBAC_SA_DETAIL", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "887aa288e05f486a9fc47cee5c16042c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "beb2a2793d944668aa12b145a4fed0af"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "f7a92e81d64d410e92517b70198cb883"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "d24e993891c84beead44c675d352d17c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "7ad9de79ed1942d58f8bdcf0f31a0182"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "897a0bf76eba4d298de6997ac5451ffa"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "8b0dcc505f594d2fae7a011bd3c9cb0b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "72bea3403a0a4ca5be463389628ee6fd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "2b4446c3583e4503b39f7b62d6f35701"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "650fa7efb97a48a98ae99655da5f10b5"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "9db06d1651824c52ac748e70d9bdd22c"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "RepLU", - table: "Set_TB_RePartsRelationship", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LU", - table: "Set_TB_RePartsRelationship", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ClientCode", - table: "Set_TB_RePartsRelationship", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TableName", - table: "Set_SyncPositionFlag", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Position", - table: "Set_SyncPositionFlag", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDesc", - table: "Set_relationship", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToHose", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToErpLocCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Oper", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromHose", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromErpLocCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FactoryPartCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DnOper", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DnBillNum", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DeliveryIndex", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DeliveryHose", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(100)", - maxLength: 100, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustPartCode", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustId", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch", - table: "Set_PUB_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "Set_PUB_SA_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_PriceListYinDu", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LU", - table: "Set_PriceListYinDu", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ContractNo", - table: "Set_PriceListYinDu", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ClientCode", - table: "Set_PriceListYinDu", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_PriceListBJ", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LU", - table: "Set_PriceListBJ", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ContractNo", - table: "Set_PriceListBJ", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ClientCode", - table: "Set_PriceListBJ", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_PriceList", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LU", - table: "Set_PriceList", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ContractNo", - table: "Set_PriceList", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ClientCode", - table: "Set_PriceList", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UniqueCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLoc", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Seq", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RefVinCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RefBillNum", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealPartCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Position", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PjsNum", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartDesc", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OrigiCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OrderNum", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Oper", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MatchNumber", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MESConfigCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "JISNum", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLoc", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FactoryPartCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Factory", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ErpToLoc", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DeliverCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(100)", - maxLength: 100, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustPartCode", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CodeType", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillCharacter", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch", - table: "Set_HBPO_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "Set_HBPO_SA_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UniqueCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLoc", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Seq", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RefVinCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RefBillNum", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealPartCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Position", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PjsNum", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartDesc", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OrigiCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OrderNum", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Oper", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MatchNumber", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MESConfigCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "JISNum", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLoc", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FactoryPartCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Factory", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ErpToLoc", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DeliverCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustomerPartCodeNoSpace", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(100)", - maxLength: 100, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustPartCode", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CodeType", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillCharacter", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch", - table: "Set_BBAC_SE_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "Set_BBAC_SA_DETAIL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "fdd5f4bfee3e45f59aca17e59904f993"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "4c070988c0794e688b142f29fa9a3dc2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "4b00fb7915934cd59f389e1b6086f99e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "8eed581d18514bc191b6e97bf347fab3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "0474eac208624e88b0dced81f5c8c02b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "a350bd04db4e4fd2b8baac7aad8c8f53"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "02192df2f3a54cf2bf82bea02114fb5c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "f26d7a21dec44400899cc71ed2f16a73"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "005ca6fbb184402e95fd273d4142088f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "0874f575990a494fbba5def3d498c5c4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "1c357daa79b044d29eb40312d59510e7"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013022453_vmi21.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013022453_vmi21.Designer.cs deleted file mode 100644 index 83a00ebe..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013022453_vmi21.Designer.cs +++ /dev/null @@ -1,6130 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20231013022453_vmi21")] - partial class vmi21 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("ProductionCodeType") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineCode") - .HasColumnType("int"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.InvoiceSyncQad", 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Domain") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailedInfo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SasInvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaskID") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("Voucher") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSyncQad"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliveryIndex") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TableName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "094fcb0226fa43689bc1e01b7fcc4fac", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "692a0ce1268c4ad2a143785ae1ef1f32", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "49af54e1a4a54b1ebad0d22fbe54951a", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "5572a8f023dd49139c0c23080ebb5a84", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "52f76a1d4eac41b5afcd13c54a5007a1", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "577bc27326b04aafabebb3d342b907b9", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "ea90c6a6b4a94e23ad1e7bcf7f7f9def", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "03777851aec947d689487481665eb8b5", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "8b834d5fc51f43f6b032565624b06ef2", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "f9dc1b87b1454780897836ab200b5fbc", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "3f3dd3d083ff40998c5d70a0d2e1c966", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("CreatedTime"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ChangedTime"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListYinDu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListYinDu"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettleMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "SettleMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013022453_vmi21.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013022453_vmi21.cs deleted file mode 100644 index 117f56fe..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013022453_vmi21.cs +++ /dev/null @@ -1,1212 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class vmi21 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "factory", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UniqueCode", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SettlementVinCode", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SettlementPartCode", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Seq", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealPartCode", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealCode", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReMark", - table: "Set_VmiReplenished", - type: "nvarchar(128)", - maxLength: 128, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PjsNum", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OrderNum", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MatchNumber", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ErpToLoc", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustPartCode", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Configcode", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ConcurrencyStamp", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CodeType", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ChangedNumber", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ChangedBy", - table: "Set_VmiReplenished", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "factory", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UniqueCode", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SettlementVinCode", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SettlementPartCode", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Seq", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealPartCode", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealCode", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReMark", - table: "Set_VmiLog", - type: "nvarchar(128)", - maxLength: 128, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PjsNum", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OrderNum", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MatchNumber", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ErpToLoc", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustPartCode", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Configcode", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ConcurrencyStamp", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CodeType", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ChangedNumber", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ChangedBy", - table: "Set_VmiLog", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "factory", - table: "Set_VmiBalance", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "Set_VmiBalance", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UniqueCode", - table: "Set_VmiBalance", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SettlementPartCode", - table: "Set_VmiBalance", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Seq", - table: "Set_VmiBalance", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealPartCode", - table: "Set_VmiBalance", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReMark", - table: "Set_VmiBalance", - type: "nvarchar(128)", - maxLength: 128, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PjsNum", - table: "Set_VmiBalance", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OrderNum", - table: "Set_VmiBalance", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MatchNumber", - table: "Set_VmiBalance", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ErpToLoc", - table: "Set_VmiBalance", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Configcode", - table: "Set_VmiBalance", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CodeType", - table: "Set_VmiBalance", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "692a0ce1268c4ad2a143785ae1ef1f32"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "49af54e1a4a54b1ebad0d22fbe54951a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "52f76a1d4eac41b5afcd13c54a5007a1"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "ea90c6a6b4a94e23ad1e7bcf7f7f9def"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "577bc27326b04aafabebb3d342b907b9"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "8b834d5fc51f43f6b032565624b06ef2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "5572a8f023dd49139c0c23080ebb5a84"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "3f3dd3d083ff40998c5d70a0d2e1c966"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "f9dc1b87b1454780897836ab200b5fbc"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "094fcb0226fa43689bc1e01b7fcc4fac"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "03777851aec947d689487481665eb8b5"); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiLog_ChangedTime", - table: "Set_VmiLog", - column: "ChangedTime"); - - migrationBuilder.CreateIndex( - name: "IX_Set_VmiBalance_CreatedTime", - table: "Set_VmiBalance", - column: "CreatedTime"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_VmiLog_ChangedTime", - table: "Set_VmiLog"); - - migrationBuilder.DropIndex( - name: "IX_Set_VmiBalance_CreatedTime", - table: "Set_VmiBalance"); - - migrationBuilder.AlterColumn( - name: "factory", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UniqueCode", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SettlementVinCode", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SettlementPartCode", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Seq", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealPartCode", - table: "Set_VmiReplenished", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealCode", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReMark", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(128)", - oldMaxLength: 128, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PjsNum", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OrderNum", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MatchNumber", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ErpToLoc", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustPartCode", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Configcode", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ConcurrencyStamp", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CodeType", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ChangedNumber", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ChangedBy", - table: "Set_VmiReplenished", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "factory", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UniqueCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SettlementVinCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SettlementPartCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Seq", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealPartCode", - table: "Set_VmiLog", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReMark", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(128)", - oldMaxLength: 128, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PjsNum", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OrderNum", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MatchNumber", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ErpToLoc", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustPartCode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Configcode", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ConcurrencyStamp", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CodeType", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ChangedNumber", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ChangedBy", - table: "Set_VmiLog", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "factory", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UniqueCode", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SettlementPartCode", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Seq", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RealPartCode", - table: "Set_VmiBalance", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReMark", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(128)", - oldMaxLength: 128, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PjsNum", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OrderNum", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MatchNumber", - table: "Set_VmiBalance", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ErpToLoc", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Configcode", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CodeType", - table: "Set_VmiBalance", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "887aa288e05f486a9fc47cee5c16042c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "beb2a2793d944668aa12b145a4fed0af"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "f7a92e81d64d410e92517b70198cb883"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "d24e993891c84beead44c675d352d17c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "7ad9de79ed1942d58f8bdcf0f31a0182"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "897a0bf76eba4d298de6997ac5451ffa"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "8b0dcc505f594d2fae7a011bd3c9cb0b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "72bea3403a0a4ca5be463389628ee6fd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "2b4446c3583e4503b39f7b62d6f35701"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "650fa7efb97a48a98ae99655da5f10b5"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "9db06d1651824c52ac748e70d9bdd22c"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013031758_20231013-2.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013031758_20231013-2.Designer.cs deleted file mode 100644 index 4415021c..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013031758_20231013-2.Designer.cs +++ /dev/null @@ -1,6098 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20231013031758_20231013-2")] - partial class _202310132 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("ProductionCodeType") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("IsHaveEdiData"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("IsDeleted"); - - b.HasIndex("IsHaveSeData"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("IsHaveEdiData"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("IsDeleted"); - - b.HasIndex("IsHaveSeData"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineCode") - .HasColumnType("int"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.InvoiceSyncQad", 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Domain") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailedInfo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SasInvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaskID") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("Voucher") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSyncQad"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliveryIndex") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TableName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "982412f397594c46abeaf58a29ad28f4", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "ce0c6fdbfcb54429a3df400467ead4df", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "2d3a0e56f77b4759be14618368b1fab2", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "b2e0060dbe4042fcace4022eb0c8ea45", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "1d4e10ce53da4f4ab7d0e7c75301aa57", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "03a006033fb5493bbf533ec0986d5014", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "68256c9631614a2bac40fdf5a62f5582", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "eb8d153d620b46318a75ad1ce1133865", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "5e39adeb506a430da075237d089e059b", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "0e45a5d4788b41a39837046bdb63d45a", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "3602bd41dcde436a980fcc2935a6760f", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(450)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(450)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(450)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasColumnType("nvarchar(450)"); - - b.Property("factory") - .HasColumnType("nvarchar(450)"); - - b.HasKey("Id"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Configcode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PjsNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasColumnType("nvarchar(max)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Seq") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("factory") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListYinDu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListYinDu"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettleMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "SettleMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013031758_20231013-2.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013031758_20231013-2.cs deleted file mode 100644 index 1c16f787..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013031758_20231013-2.cs +++ /dev/null @@ -1,258 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202310132 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "ce0c6fdbfcb54429a3df400467ead4df"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "2d3a0e56f77b4759be14618368b1fab2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "1d4e10ce53da4f4ab7d0e7c75301aa57"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "68256c9631614a2bac40fdf5a62f5582"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "03a006033fb5493bbf533ec0986d5014"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "5e39adeb506a430da075237d089e059b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "b2e0060dbe4042fcace4022eb0c8ea45"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "3602bd41dcde436a980fcc2935a6760f"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "0e45a5d4788b41a39837046bdb63d45a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "982412f397594c46abeaf58a29ad28f4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "eb8d153d620b46318a75ad1ce1133865"); - - migrationBuilder.CreateIndex( - name: "IX_Set_HBPO_SE_EDI_IsDeleted", - table: "Set_HBPO_SE_EDI", - column: "IsDeleted"); - - migrationBuilder.CreateIndex( - name: "IX_Set_HBPO_SE_EDI_IsHaveSeData", - table: "Set_HBPO_SE_EDI", - column: "IsHaveSeData"); - - migrationBuilder.CreateIndex( - name: "IX_Set_HBPO_SE_DETAIL_BusinessType", - table: "Set_HBPO_SE_DETAIL", - column: "BusinessType"); - - migrationBuilder.CreateIndex( - name: "IX_Set_HBPO_SE_DETAIL_IsHaveEdiData", - table: "Set_HBPO_SE_DETAIL", - column: "IsHaveEdiData"); - - migrationBuilder.CreateIndex( - name: "IX_Set_HBPO_SA_DETAIL_BusinessType", - table: "Set_HBPO_SA_DETAIL", - column: "BusinessType"); - - migrationBuilder.CreateIndex( - name: "IX_Set_BBAC_SE_EDI_IsDeleted", - table: "Set_BBAC_SE_EDI", - column: "IsDeleted"); - - migrationBuilder.CreateIndex( - name: "IX_Set_BBAC_SE_EDI_IsHaveSeData", - table: "Set_BBAC_SE_EDI", - column: "IsHaveSeData"); - - migrationBuilder.CreateIndex( - name: "IX_Set_BBAC_SE_DETAIL_BusinessType", - table: "Set_BBAC_SE_DETAIL", - column: "BusinessType"); - - migrationBuilder.CreateIndex( - name: "IX_Set_BBAC_SE_DETAIL_IsHaveEdiData", - table: "Set_BBAC_SE_DETAIL", - column: "IsHaveEdiData"); - - migrationBuilder.CreateIndex( - name: "IX_Set_BBAC_SA_DETAIL_BusinessType", - table: "Set_BBAC_SA_DETAIL", - column: "BusinessType"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_HBPO_SE_EDI_IsDeleted", - table: "Set_HBPO_SE_EDI"); - - migrationBuilder.DropIndex( - name: "IX_Set_HBPO_SE_EDI_IsHaveSeData", - table: "Set_HBPO_SE_EDI"); - - migrationBuilder.DropIndex( - name: "IX_Set_HBPO_SE_DETAIL_BusinessType", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropIndex( - name: "IX_Set_HBPO_SE_DETAIL_IsHaveEdiData", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropIndex( - name: "IX_Set_HBPO_SA_DETAIL_BusinessType", - table: "Set_HBPO_SA_DETAIL"); - - migrationBuilder.DropIndex( - name: "IX_Set_BBAC_SE_EDI_IsDeleted", - table: "Set_BBAC_SE_EDI"); - - migrationBuilder.DropIndex( - name: "IX_Set_BBAC_SE_EDI_IsHaveSeData", - table: "Set_BBAC_SE_EDI"); - - migrationBuilder.DropIndex( - name: "IX_Set_BBAC_SE_DETAIL_BusinessType", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropIndex( - name: "IX_Set_BBAC_SE_DETAIL_IsHaveEdiData", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropIndex( - name: "IX_Set_BBAC_SA_DETAIL_BusinessType", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "887aa288e05f486a9fc47cee5c16042c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "beb2a2793d944668aa12b145a4fed0af"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "f7a92e81d64d410e92517b70198cb883"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "d24e993891c84beead44c675d352d17c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "7ad9de79ed1942d58f8bdcf0f31a0182"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "897a0bf76eba4d298de6997ac5451ffa"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "8b0dcc505f594d2fae7a011bd3c9cb0b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "72bea3403a0a4ca5be463389628ee6fd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "2b4446c3583e4503b39f7b62d6f35701"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "650fa7efb97a48a98ae99655da5f10b5"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "9db06d1651824c52ac748e70d9bdd22c"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013032738_20231013-3.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013032738_20231013-3.Designer.cs deleted file mode 100644 index 0f1925f1..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013032738_20231013-3.Designer.cs +++ /dev/null @@ -1,6170 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20231013032738_20231013-3")] - partial class _202310133 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("ProductionCodeType") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("MappingType"); - - b.HasIndex("Version"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("IsHaveEdiData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("IsDeleted"); - - b.HasIndex("IsHaveSeData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("MappingType"); - - b.HasIndex("Version"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("IsHaveEdiData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("IsDeleted"); - - b.HasIndex("IsHaveSeData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineCode") - .HasColumnType("int"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.InvoiceSyncQad", 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Domain") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailedInfo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SasInvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaskID") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("Voucher") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSyncQad"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliveryIndex") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TableName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "1199edad1ea74d6ea16ed79c4d695306", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "a9b7c93f626040ad9263c02685f632fd", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "9b2db87bd049489ea604914c36d72f21", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "0ca8403cc0674c56b2e136103af08ebd", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "666f8653c5df429291d8f9bf340272ad", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "047259cc9d7a4f01b43465207f937bbe", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "e80a3d92203642cca3d05f3c8b658d4d", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "1573edbadee043c0a8f663bf5a8569b1", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "40a18956b53248bfa975b313aa03b571", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "2f5fa52bb80b46b39eecb861a73c71f2", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "682f0162c2c0488fa56edb41b89bc4ec", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("CreatedTime"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ChangedTime"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListYinDu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListYinDu"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettleMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "SettleMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013032738_20231013-3.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013032738_20231013-3.cs deleted file mode 100644 index afa4233f..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013032738_20231013-3.cs +++ /dev/null @@ -1,258 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202310133 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "a9b7c93f626040ad9263c02685f632fd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "9b2db87bd049489ea604914c36d72f21"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "666f8653c5df429291d8f9bf340272ad"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "e80a3d92203642cca3d05f3c8b658d4d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "047259cc9d7a4f01b43465207f937bbe"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "40a18956b53248bfa975b313aa03b571"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "0ca8403cc0674c56b2e136103af08ebd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "682f0162c2c0488fa56edb41b89bc4ec"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "2f5fa52bb80b46b39eecb861a73c71f2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "1199edad1ea74d6ea16ed79c4d695306"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "1573edbadee043c0a8f663bf5a8569b1"); - - migrationBuilder.CreateIndex( - name: "IX_Set_HBPO_SE_EDI_CustomerPartCodeNoSpace_PN", - table: "Set_HBPO_SE_EDI", - columns: new[] { "CustomerPartCodeNoSpace", "PN" }); - - migrationBuilder.CreateIndex( - name: "IX_Set_HBPO_SE_DETAIL_CustomerPartCodeNoSpace_PN", - table: "Set_HBPO_SE_DETAIL", - columns: new[] { "CustomerPartCodeNoSpace", "PN" }); - - migrationBuilder.CreateIndex( - name: "IX_Set_HBPO_SA_DETAIL_CustomerPartCodeNoSpace_PN", - table: "Set_HBPO_SA_DETAIL", - columns: new[] { "CustomerPartCodeNoSpace", "PN" }); - - migrationBuilder.CreateIndex( - name: "IX_Set_HBPO_SA_DETAIL_MappingType", - table: "Set_HBPO_SA_DETAIL", - column: "MappingType"); - - migrationBuilder.CreateIndex( - name: "IX_Set_HBPO_SA_DETAIL_Version", - table: "Set_HBPO_SA_DETAIL", - column: "Version"); - - migrationBuilder.CreateIndex( - name: "IX_Set_BBAC_SE_EDI_CustomerPartCodeNoSpace_PN", - table: "Set_BBAC_SE_EDI", - columns: new[] { "CustomerPartCodeNoSpace", "PN" }); - - migrationBuilder.CreateIndex( - name: "IX_Set_BBAC_SE_DETAIL_CustomerPartCodeNoSpace_PN", - table: "Set_BBAC_SE_DETAIL", - columns: new[] { "CustomerPartCodeNoSpace", "PN" }); - - migrationBuilder.CreateIndex( - name: "IX_Set_BBAC_SA_DETAIL_CustomerPartCodeNoSpace_PN", - table: "Set_BBAC_SA_DETAIL", - columns: new[] { "CustomerPartCodeNoSpace", "PN" }); - - migrationBuilder.CreateIndex( - name: "IX_Set_BBAC_SA_DETAIL_MappingType", - table: "Set_BBAC_SA_DETAIL", - column: "MappingType"); - - migrationBuilder.CreateIndex( - name: "IX_Set_BBAC_SA_DETAIL_Version", - table: "Set_BBAC_SA_DETAIL", - column: "Version"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_HBPO_SE_EDI_CustomerPartCodeNoSpace_PN", - table: "Set_HBPO_SE_EDI"); - - migrationBuilder.DropIndex( - name: "IX_Set_HBPO_SE_DETAIL_CustomerPartCodeNoSpace_PN", - table: "Set_HBPO_SE_DETAIL"); - - migrationBuilder.DropIndex( - name: "IX_Set_HBPO_SA_DETAIL_CustomerPartCodeNoSpace_PN", - table: "Set_HBPO_SA_DETAIL"); - - migrationBuilder.DropIndex( - name: "IX_Set_HBPO_SA_DETAIL_MappingType", - table: "Set_HBPO_SA_DETAIL"); - - migrationBuilder.DropIndex( - name: "IX_Set_HBPO_SA_DETAIL_Version", - table: "Set_HBPO_SA_DETAIL"); - - migrationBuilder.DropIndex( - name: "IX_Set_BBAC_SE_EDI_CustomerPartCodeNoSpace_PN", - table: "Set_BBAC_SE_EDI"); - - migrationBuilder.DropIndex( - name: "IX_Set_BBAC_SE_DETAIL_CustomerPartCodeNoSpace_PN", - table: "Set_BBAC_SE_DETAIL"); - - migrationBuilder.DropIndex( - name: "IX_Set_BBAC_SA_DETAIL_CustomerPartCodeNoSpace_PN", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.DropIndex( - name: "IX_Set_BBAC_SA_DETAIL_MappingType", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.DropIndex( - name: "IX_Set_BBAC_SA_DETAIL_Version", - table: "Set_BBAC_SA_DETAIL"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "887aa288e05f486a9fc47cee5c16042c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "beb2a2793d944668aa12b145a4fed0af"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "52f76a1d4eac41b5afcd13c54a5007a1"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "d24e993891c84beead44c675d352d17c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "7ad9de79ed1942d58f8bdcf0f31a0182"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "897a0bf76eba4d298de6997ac5451ffa"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "8b0dcc505f594d2fae7a011bd3c9cb0b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "72bea3403a0a4ca5be463389628ee6fd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "2b4446c3583e4503b39f7b62d6f35701"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "650fa7efb97a48a98ae99655da5f10b5"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "9db06d1651824c52ac748e70d9bdd22c"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231016031124_20231016-1.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231016031124_20231016-1.Designer.cs deleted file mode 100644 index 286ee373..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231016031124_20231016-1.Designer.cs +++ /dev/null @@ -1,6170 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20231016031124_20231016-1")] - partial class _202310161 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("ProductionCodeType") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("MappingType"); - - b.HasIndex("Version"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("IsHaveEdiData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("IsDeleted"); - - b.HasIndex("IsHaveSeData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("MappingType"); - - b.HasIndex("Version"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("IsHaveEdiData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("IsDeleted"); - - b.HasIndex("IsHaveSeData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineCode") - .HasColumnType("int"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.InvoiceSyncQad", 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Domain") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailedInfo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SasInvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TableName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("Voucher") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSyncQad"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliveryIndex") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TableName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "a618b89180be498b83c0293e64ed74ac", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "4ea75fc9726a401f9a0f56dbbb39e023", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "2d81af0f1dc147648bb26c425ad46fac", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "a4f52d8fd24d4c278266799c591c9c01", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "63eabf4b40c246088eafb9dace7ff8cd", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "3bb7d703bfc5494a96a813f8d0cc4372", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "e541a21d877746f39f33705b9b65c610", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "d7c49aaf06804a0fb70f3e1ce4fb87fe", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "22525cd539bb4643b9fc29fdad20b553", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "bbef0e9d31184d5d87943e69ed366118", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "6d2f6b84833f4056be750234138b128e", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("CreatedTime"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ChangedTime"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListYinDu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListYinDu"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettleMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "SettleMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231016031124_20231016-1.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231016031124_20231016-1.cs deleted file mode 100644 index 2fe54fbe..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231016031124_20231016-1.cs +++ /dev/null @@ -1,188 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202310161 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn( - name: "TaskID", - table: "Set_InvoiceSyncQad", - newName: "TaskId"); - - migrationBuilder.RenameColumn( - name: "TaskName", - table: "Set_InvoiceSyncQad", - newName: "TableName"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "4ea75fc9726a401f9a0f56dbbb39e023"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "2d81af0f1dc147648bb26c425ad46fac"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "63eabf4b40c246088eafb9dace7ff8cd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "e541a21d877746f39f33705b9b65c610"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "3bb7d703bfc5494a96a813f8d0cc4372"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "22525cd539bb4643b9fc29fdad20b553"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "a4f52d8fd24d4c278266799c591c9c01"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "6d2f6b84833f4056be750234138b128e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "bbef0e9d31184d5d87943e69ed366118"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "a618b89180be498b83c0293e64ed74ac"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "d7c49aaf06804a0fb70f3e1ce4fb87fe"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn( - name: "TaskId", - table: "Set_InvoiceSyncQad", - newName: "TaskID"); - - migrationBuilder.RenameColumn( - name: "TableName", - table: "Set_InvoiceSyncQad", - newName: "TaskName"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "a9b7c93f626040ad9263c02685f632fd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "9b2db87bd049489ea604914c36d72f21"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "666f8653c5df429291d8f9bf340272ad"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "e80a3d92203642cca3d05f3c8b658d4d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "047259cc9d7a4f01b43465207f937bbe"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "40a18956b53248bfa975b313aa03b571"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "0ca8403cc0674c56b2e136103af08ebd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "682f0162c2c0488fa56edb41b89bc4ec"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "2f5fa52bb80b46b39eecb861a73c71f2"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "1199edad1ea74d6ea16ed79c4d695306"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "1573edbadee043c0a8f663bf5a8569b1"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231016062207_20231016-2.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231016062207_20231016-2.Designer.cs deleted file mode 100644 index b7452965..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231016062207_20231016-2.Designer.cs +++ /dev/null @@ -1,6170 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20231016062207_20231016-2")] - partial class _202310162 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("ProductionCodeType") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("MappingType"); - - b.HasIndex("Version"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("IsHaveEdiData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("IsDeleted"); - - b.HasIndex("IsHaveSeData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("MappingType"); - - b.HasIndex("Version"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("IsHaveEdiData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("IsDeleted"); - - b.HasIndex("IsHaveSeData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineCode") - .HasColumnType("int"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.InvoiceSyncQad", 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Domain") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailedInfo") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("InvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SasInvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TableName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("Voucher") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSyncQad"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliveryIndex") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TableName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "f07d2231f5bb491f8af3998b940bead3", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "c13d9a6642a14881a2c1a8b7ea5fcb8d", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "8b680dddea2948f1b9c5478b2d96f7d0", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "4f740c857c2a4bc3a0add51cfd3f11df", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "9c1702dde8db40c6aa685f4b9ffe71c6", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "3cf03f88ec444bf1a74a85ebd2bcd7d9", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "b171fd7cee07472c8274c027ede28f9a", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "3f463dcd61a444f090c2e7351a7b28cc", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "66dff84a79ce4282b8f4d3a540bd12fa", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "f55c2e2108ff4b00b5dd87d5ebfd38e4", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "804104765ca94802a7395123fe7e291c", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("CreatedTime"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ChangedTime"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListYinDu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListYinDu"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettleMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "SettleMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231016062207_20231016-2.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231016062207_20231016-2.cs deleted file mode 100644 index c1108353..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231016062207_20231016-2.cs +++ /dev/null @@ -1,190 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202310162 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "FailedInfo", - table: "Set_InvoiceSyncQad", - type: "nvarchar(500)", - maxLength: 500, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "c13d9a6642a14881a2c1a8b7ea5fcb8d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "8b680dddea2948f1b9c5478b2d96f7d0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "9c1702dde8db40c6aa685f4b9ffe71c6"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "b171fd7cee07472c8274c027ede28f9a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "3cf03f88ec444bf1a74a85ebd2bcd7d9"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "66dff84a79ce4282b8f4d3a540bd12fa"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "4f740c857c2a4bc3a0add51cfd3f11df"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "804104765ca94802a7395123fe7e291c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "f55c2e2108ff4b00b5dd87d5ebfd38e4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "f07d2231f5bb491f8af3998b940bead3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "3f463dcd61a444f090c2e7351a7b28cc"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "FailedInfo", - table: "Set_InvoiceSyncQad", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(500)", - oldMaxLength: 500, - oldNullable: true); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "4ea75fc9726a401f9a0f56dbbb39e023"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "2d81af0f1dc147648bb26c425ad46fac"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "63eabf4b40c246088eafb9dace7ff8cd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "e541a21d877746f39f33705b9b65c610"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "3bb7d703bfc5494a96a813f8d0cc4372"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "22525cd539bb4643b9fc29fdad20b553"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "a4f52d8fd24d4c278266799c591c9c01"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "6d2f6b84833f4056be750234138b128e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "bbef0e9d31184d5d87943e69ed366118"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "a618b89180be498b83c0293e64ed74ac"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "d7c49aaf06804a0fb70f3e1ce4fb87fe"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231101023002_20231111.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231101023002_20231111.Designer.cs deleted file mode 100644 index edf82ec2..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231101023002_20231111.Designer.cs +++ /dev/null @@ -1,6178 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20231101023002_20231111")] - partial class _20231111 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("ProductionCodeType") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("MappingType"); - - b.HasIndex("Version"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("IsHaveEdiData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("IsDeleted"); - - b.HasIndex("IsHaveSeData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("MappingType"); - - b.HasIndex("Version"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("IsHaveEdiData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("IsDeleted"); - - b.HasIndex("IsHaveSeData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineCode") - .HasColumnType("int"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.InvoiceSyncQad", 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Domain") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailedInfo") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("InvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SasInvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TableName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("Voucher") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSyncQad"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliveryIndex") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TableName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "c0009655671b4c67aafa641a18ab7512", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "77f1b41949d5436b8d1935bc21b98a54", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "6404d1839d68478189fd8a9fbd72067b", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "faa60c8fdc9f46518f34d756d932858a", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "6a99699beaa946bc82e545cbabd6594a", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "af105df5a597486483b5a80e7a82012a", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "5973e508dc284fbda7801ac2d6114f50", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "6669dd2cf3114f43989f64e9f27ef1b5", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "428e13f0333542d8b84288ba8cbb9048", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "76c6644c2274455d8db9d4032cd48f62", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "80ecdd20c8754faf961e532967ff2b84", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("CreatedTime"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ChangedTime"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListYinDu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListYinDu"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettleMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "SettleMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231101023002_20231111.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231101023002_20231111.cs deleted file mode 100644 index 1c062830..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231101023002_20231111.cs +++ /dev/null @@ -1,192 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _20231111 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "State", - table: "Set_HBPO_SE_EDI", - type: "int", - maxLength: 50, - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "State", - table: "Set_BBAC_SE_EDI", - type: "int", - maxLength: 50, - nullable: false, - defaultValue: 0); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "77f1b41949d5436b8d1935bc21b98a54"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "6404d1839d68478189fd8a9fbd72067b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "6a99699beaa946bc82e545cbabd6594a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "5973e508dc284fbda7801ac2d6114f50"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "af105df5a597486483b5a80e7a82012a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "428e13f0333542d8b84288ba8cbb9048"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "faa60c8fdc9f46518f34d756d932858a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "80ecdd20c8754faf961e532967ff2b84"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "76c6644c2274455d8db9d4032cd48f62"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "c0009655671b4c67aafa641a18ab7512"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "6669dd2cf3114f43989f64e9f27ef1b5"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "State", - table: "Set_HBPO_SE_EDI"); - - migrationBuilder.DropColumn( - name: "State", - table: "Set_BBAC_SE_EDI"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "c13d9a6642a14881a2c1a8b7ea5fcb8d"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "8b680dddea2948f1b9c5478b2d96f7d0"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "9c1702dde8db40c6aa685f4b9ffe71c6"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "b171fd7cee07472c8274c027ede28f9a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "3cf03f88ec444bf1a74a85ebd2bcd7d9"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "66dff84a79ce4282b8f4d3a540bd12fa"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "4f740c857c2a4bc3a0add51cfd3f11df"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "804104765ca94802a7395123fe7e291c"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "f55c2e2108ff4b00b5dd87d5ebfd38e4"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "f07d2231f5bb491f8af3998b940bead3"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "3f463dcd61a444f090c2e7351a7b28cc"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231214035158_202312140001.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231214035158_202312140001.Designer.cs deleted file mode 100644 index d51ce68b..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231214035158_202312140001.Designer.cs +++ /dev/null @@ -1,6253 +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 Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - [Migration("20231214035158_202312140001")] - partial class _202312140001 - { - 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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StateOther") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("ProductionCodeType") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("MappingType"); - - b.HasIndex("Version"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("IsHaveEdiData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("IsDeleted"); - - b.HasIndex("IsHaveSeData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("MappingType"); - - b.HasIndex("Version"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("IsHaveEdiData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("IsDeleted"); - - b.HasIndex("IsHaveSeData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineCode") - .HasColumnType("int"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.InvoiceSyncQad", 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Domain") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailedInfo") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("InvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SasInvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TableName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("Voucher") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSyncQad"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliveryIndex") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TableName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "361fff6305e343cabd1a30996f06b2f6", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "3a923aaaa9ae40909dd4c4c9742b6a6b", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "6ec51a85d14d4b8fb1d73448c094bc7e", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "a155d7eb0a4241c18959939d43fae77e", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "8bb2744237da4124b53d60ae195d0033", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "cd696e4bd17945d6a12a563e6f4df0bd", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "ded0555578d84ac3b7fe4398c6fa0fed", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "3353367fc55e4997a9f0b1d4619f1ec9", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "f975d3b2aed6483ebccc47c2759ac7a1", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "601c312fb4704923bae6f5fcb8c43f5a", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "f2fa14427a7b40ff9931d64d69e1ff27", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("CreatedTime"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalanceSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ErpToLoc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealPartcode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SumQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiBalanceSum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalanceSumDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ErpToLoc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartcode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("ReturnQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingTime") - .HasColumnType("datetime2"); - - b.Property("SumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Vincode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiBalanceSumDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ChangedTime"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListYinDu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListYinDu"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettleMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "SettleMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231214035158_202312140001.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231214035158_202312140001.cs deleted file mode 100644 index bc42eb68..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231214035158_202312140001.cs +++ /dev/null @@ -1,231 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202312140001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Version", - table: "Set_VmiLog", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "StateOther", - table: "Set_BBAC_SA", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.CreateTable( - name: "Set_VmiBalanceSum", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - RealPartcode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ErpToLoc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SumQty = table.Column(type: "decimal(18,2)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_VmiBalanceSum", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_VmiBalanceSumDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Vincode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - RealPartcode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ErpToLoc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ShippingTime = table.Column(type: "datetime2", nullable: true), - ReceiveTime = table.Column(type: "datetime2", nullable: true), - SumQty = table.Column(type: "decimal(18,2)", nullable: false), - ShippingQty = table.Column(type: "decimal(18,2)", nullable: false), - SettleQty = table.Column(type: "decimal(18,2)", nullable: false), - ReturnQty = table.Column(type: "decimal(18,2)", nullable: false), - InputQty = table.Column(type: "decimal(18,2)", nullable: false), - OutputQty = table.Column(type: "decimal(18,2)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_VmiBalanceSumDetail", x => x.Id); - }); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "3a923aaaa9ae40909dd4c4c9742b6a6b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "6ec51a85d14d4b8fb1d73448c094bc7e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "8bb2744237da4124b53d60ae195d0033"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "ded0555578d84ac3b7fe4398c6fa0fed"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "cd696e4bd17945d6a12a563e6f4df0bd"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "f975d3b2aed6483ebccc47c2759ac7a1"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "a155d7eb0a4241c18959939d43fae77e"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "f2fa14427a7b40ff9931d64d69e1ff27"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "601c312fb4704923bae6f5fcb8c43f5a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "361fff6305e343cabd1a30996f06b2f6"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "3353367fc55e4997a9f0b1d4619f1ec9"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_VmiBalanceSum"); - - migrationBuilder.DropTable( - name: "Set_VmiBalanceSumDetail"); - - migrationBuilder.DropColumn( - name: "Version", - table: "Set_VmiLog"); - - migrationBuilder.DropColumn( - name: "StateOther", - table: "Set_BBAC_SA"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - column: "ConcurrencyStamp", - value: "77f1b41949d5436b8d1935bc21b98a54"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - column: "ConcurrencyStamp", - value: "6404d1839d68478189fd8a9fbd72067b"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - column: "ConcurrencyStamp", - value: "6a99699beaa946bc82e545cbabd6594a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - column: "ConcurrencyStamp", - value: "5973e508dc284fbda7801ac2d6114f50"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - column: "ConcurrencyStamp", - value: "af105df5a597486483b5a80e7a82012a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - column: "ConcurrencyStamp", - value: "428e13f0333542d8b84288ba8cbb9048"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - column: "ConcurrencyStamp", - value: "faa60c8fdc9f46518f34d756d932858a"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - column: "ConcurrencyStamp", - value: "80ecdd20c8754faf961e532967ff2b84"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - column: "ConcurrencyStamp", - value: "76c6644c2274455d8db9d4032cd48f62"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - column: "ConcurrencyStamp", - value: "c0009655671b4c67aafa641a18ab7512"); - - migrationBuilder.UpdateData( - table: "Set_JobItem", - keyColumn: "Id", - keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - column: "ConcurrencyStamp", - value: "6669dd2cf3114f43989f64e9f27ef1b5"); - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs deleted file mode 100644 index 49b53ff4..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs +++ /dev/null @@ -1,6251 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountDbContext))] - partial class SettleAccountDbContextModelSnapshot : ModelSnapshot - { - protected override void BuildModel(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("SettleAccount.Domain.BQ.BBAC_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StateOther") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractDocID") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsReturn") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("ProductionCodeType") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("MappingType"); - - b.HasIndex("Version"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("IsHaveEdiData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("IsDeleted"); - - b.HasIndex("IsHaveSeData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_BBAC_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DNBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecordCount") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("MappingType"); - - b.HasIndex("Version"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillCharacter") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveEdiData") - .HasColumnType("bit"); - - b.Property("JISNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MESConfigCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrigiCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PartDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RefVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("BusinessType"); - - b.HasIndex("IsHaveEdiData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_EDI", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend4") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHaveSeData") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStationCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("IsDeleted"); - - b.HasIndex("IsHaveSeData"); - - b.HasIndex("CustomerPartCodeNoSpace", "PN"); - - b.ToTable("Set_HBPO_SE_EDI"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_GRP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ClientCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("FileName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvoiceState") - .HasColumnType("int"); - - 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("ParentInvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PreTaxDiff") - .HasColumnType("decimal(18,2)"); - - b.Property("RealAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("RealnvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Tax") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("TaxDiff") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_GRP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_MAP_GROUP", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_MAP_GROUP"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_NOT_SETTLE", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_NOT_SETTLE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.INVOICE_WAIT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BussiessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("EndDate") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineCode") - .HasColumnType("int"); - - b.Property("PRICE") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_INVOICE_WAIT_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.InvoiceSyncQad", 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Domain") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailedInfo") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("InvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SasInvoiceNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TableName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskState") - .HasColumnType("int"); - - b.Property("Voucher") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSyncQad"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EDIQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("InjectionCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WMSQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_JIT_SE_SA_REPORT"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsMaiDan") - .HasColumnType("bit"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OldInvBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_ADJ_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvbillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_CAN_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_NOT_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_NOT_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("SettleBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_PD_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend2") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend3") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend4") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InvGroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("RELU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("REPN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_PD_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .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("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Site") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("State") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SA_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IndexNum") - .HasColumnType("int"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MappingType") - .HasColumnType("int"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Place") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SA_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_SE_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("Batch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("BusinessType") - .HasMaxLength(50) - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerPartCodeNoSpace") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("DeliveryHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliveryIndex") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DnBillTime") - .HasColumnType("datetime2"); - - b.Property("DnOper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Extend1") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Extend3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FactoryPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KeyCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Oper") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProType") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("SubBillType") - .HasColumnType("int"); - - b.Property("ToErpLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToHose") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .HasColumnType("int"); - - b.Property("UID") - .HasColumnType("bigint"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SE_DETAIL"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.PURCHASE_PRICE", 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("LU") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_PURCHASE_PRICE"); - }); - - modelBuilder.Entity("SettleAccount.Domain.BQ.TB_RePartsRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("RepLU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_TB_RePartsRelationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .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("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_BBAC_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_HBPO_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerOfflineTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpLoc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FixPrice") - .HasColumnType("decimal(18,2)"); - - 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("MateType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDes") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PJISSeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PN") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PrimitiveLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReplaceLU") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SAQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SEQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SeqNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShippingDate") - .HasColumnType("datetime2"); - - b.Property("WmsBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PUB_SEC_DETAIL"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Syncs.SyncPositionFlag", 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("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TableName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_SyncPositionFlag"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HeartBeat") - .HasColumnType("datetime2"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("IsRunning") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Service") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Set_JobItem"); - - b.HasData( - new - { - Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), - ConcurrencyStamp = "361fff6305e343cabd1a30996f06b2f6", - Cron = "0 0 8 26 *", - IsDisabled = false, - IsRunning = false, - Name = "时点库存备份", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService" - }, - new - { - Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), - ConcurrencyStamp = "3a923aaaa9ae40909dd4c4c9742b6a6b", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存余额同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" - }, - new - { - Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), - ConcurrencyStamp = "6ec51a85d14d4b8fb1d73448c094bc7e", - Cron = "0 0/1 * * * ?", - IsDisabled = false, - IsRunning = false, - Name = "库存事务消息监控", - Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" - }, - new - { - Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), - ConcurrencyStamp = "a155d7eb0a4241c18959939d43fae77e", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisBBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisBBACSeSyncAppService" - }, - new - { - Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), - ConcurrencyStamp = "8bb2744237da4124b53d60ae195d0033", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "JisHBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.JisHBPOSeSyncAppService" - }, - new - { - Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), - ConcurrencyStamp = "cd696e4bd17945d6a12a563e6f4df0bd", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件BBAC发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanBBACSeSyncAppService" - }, - new - { - Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), - ConcurrencyStamp = "ded0555578d84ac3b7fe4398c6fa0fed", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "买单件HBPO发运数据同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.MaiDanHBPOSeSyncAppService" - }, - new - { - Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), - ConcurrencyStamp = "3353367fc55e4997a9f0b1d4619f1ec9", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件BBAC发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" - }, - new - { - Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), - ConcurrencyStamp = "f975d3b2aed6483ebccc47c2759ac7a1", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "直供件HBPO发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" - }, - new - { - Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), - ConcurrencyStamp = "601c312fb4704923bae6f5fcb8c43f5a", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "备件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" - }, - new - { - Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), - ConcurrencyStamp = "f2fa14427a7b40ff9931d64d69e1ff27", - Cron = "0 0/30 * * * ? ", - IsDisabled = false, - IsRunning = false, - Name = "印度件发运同步", - Service = "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" - }); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Host") - .HasColumnType("nvarchar(max)"); - - b.Property("JobId") - .HasColumnType("uniqueidentifier"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.Property("Success") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("JobId"); - - b.ToTable("Set_JobLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasColumnType("nvarchar(max)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("CreatedTime"); - - b.HasIndex("DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode") - .IsUnique() - .HasFilter("[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); - - b.ToTable("Set_VmiBalance"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalanceSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ErpToLoc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealPartcode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SumQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiBalanceSum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiBalanceSumDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ErpToLoc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("RealPartcode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("ReturnQty") - .HasColumnType("decimal(18,2)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ShippingTime") - .HasColumnType("datetime2"); - - b.Property("SumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Vincode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiBalanceSumDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .ValueGeneratedOnAdd() - .HasColumnType("datetime2") - .HasDefaultValueSql("getdate()"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ChangedTime"); - - b.ToTable("Set_VmiLog"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("isConsumed") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiMessage"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiReplenished", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssembleData") - .HasColumnType("datetime2"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("ChangedBy") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ChangedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ChangedTime") - .HasColumnType("datetime2"); - - b.Property("ChangedType") - .HasColumnType("int"); - - b.Property("CodeType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Configcode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreatedTime") - .HasColumnType("datetime2"); - - b.Property("CustPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverBillType") - .HasColumnType("int"); - - b.Property("DeliverSubBillType") - .HasColumnType("int"); - - b.Property("ErpToLoc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsReplenished") - .HasColumnType("bit"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("MatchNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrderNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PjsNum") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReMark") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RealCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RealPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Seq") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementPartCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettlementVinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UniqueCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpdatedTime") - .HasColumnType("datetime2"); - - b.Property("VinCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("factory") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiReplenished"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.VmiSnapshot", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("End") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Start") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Set_VmiSnapshot"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_CodeSetting"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("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("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("bit"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("CustomerPartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BusinessType") - .HasColumnType("int"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersionBJ", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersionBJ"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListYinDu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("ClientCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContractNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCancel") - .HasColumnType("bit"); - - b.Property("LU") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListYinDu"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RealFileName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BusinessType") - .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("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SettleMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode", "SettleMaterialCode", "BusinessType") - .IsUnique(); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobLog", b => - { - b.HasOne("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", "Job") - .WithMany() - .HasForeignKey("JobId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Job"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/appsettings.json b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/appsettings.json index ff295e84..b698efe6 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/appsettings.json +++ b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/appsettings.json @@ -10,7 +10,7 @@ }, "ConnectionStrings": { "Default": "Server=dev.ccwin-in.com,13326;Database=BJABP;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True", - "SettleAccountService": "Server=dev.ccwin-in.com,13326;Database=BQ_SA;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True;" + "SettleAccountService": "Server=dev.ccwin-in.com,13326;Database=BQ_SA_TEMP;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True;" //"SettleAccountService": "Server=localhost;Database=BQ_SA;User ID=sa;Password=aA123456!;Trusted_Connection=False;TrustServerCertificate=True", //"Default": "Server=localhost;Database=BJABP;User ID=sa;Password=aA123456!;Trusted_Connection=False;TrustServerCertificate=True" }, @@ -19,6 +19,7 @@ }, "Redis": { "Configuration": "127.0.0.1" + }, "Logging": { "LogLevel": {